Why the results of the matrix X' dont show?
1 view (last 30 days)
Show older comments
I'm just trying to prove if x4 = 0 the matrix X' will be [100+0 -400+0 -500+0 0], but i only recive red flags :(, someone know what i did wrong to fix it ?
A = [0 2 -1 0 ; 0 0 1 -1 ; 1 -1 0 0 ; -1 0 0 1]
B= [100 -500 300 100]
X = inv(A)*B
for x4 = 0:1:100
X' =[-100+x4 -400+x4 -500+x4 x4]
if X'=X
break
end
end
3 Comments
Accepted Answer
Stephen23
on 20 Sep 2021
A = [0,2,-1,0;0,0,1,-1;1,-1,0,0;-1,0,0,1];
B = [100;-500;300;100];
X = A\B % more robust than INV(A)*B
0 Comments
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!