Why do i get decimal on my final answer?

조회 수: 1 (최근 30일)
Levi
Levi 2020년 12월 1일
댓글: Levi 2020년 12월 1일
The final asnwer should be 200, 1400 and 600. But why there is decimal in my final matlab answer? Did I left something?
A = [ 1 1 1 ; 0.06 0.08 0.09 ; 3 0 -1]
A =1.0000 1.0000 1.0000
0.0600 0.0800 0.0900
3.0000 0 -1.0000
>> B= [ 2200 ; 178 ; 0]
B = 2200
178
0
>> AB = [ A B ]
AB =1.0e+03 *
0.0010 0.0010 0.0010 2.2000
0.0001 0.0001 0.0001 0.1780
0.0030 0 -0.0010 0
>> rref(AB)
ans =1.0e+03 *
0.0010 0 0 0.2000
0 0.0010 0 1.4000
0 0 0.0010 0.6000

채택된 답변

Walter Roberson
Walter Roberson 2020년 12월 1일
Give the command
format long g
and now ask to display the answers again.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by