Represent the result of matrices manipulation as rational numbers
조회 수: 7 (최근 30일)
이전 댓글 표시
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!