Why do i get decimal on my final answer?

1 view (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 1 Dec 2020
Give the command
format long g
and now ask to display the answers again.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!