Represent the result of matrices manipulation as rational numbers
8 ビュー (過去 30 日間)
古いコメントを表示
Fatma Alnabrisi
2019 年 12 月 6 日
編集済み: Fatma Alnabrisi
2019 年 12 月 6 日
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]
0 件のコメント
採用された回答
JESUS DAVID ARIZA ROYETH
2019 年 12 月 6 日
format rat
A = [ 1/2 1/3 ; 4 5/6]
B = [ 2 1/4 ; 4 1 ]
C = A+B
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!