Represent the result of matrices manipulation as rational numbers

11 visualizaciones (últimos 30 días)
Hi everyone
I need to represent my resultant matrix with rational number rather than decimal point.
for example I have matrix A = [ 1/2 1/3 ; 4 5/6]
B = [ 2 1/4 ; 4 1 ]
C = A+B
how to get C as [ 5/2 7/12 ; 8 11/6]

Respuesta aceptada

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH el 6 de Dic. de 2019
format rat
A = [ 1/2 1/3 ; 4 5/6]
B = [ 2 1/4 ; 4 1 ]
C = A+B

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by