How to plot a graph of this matrix ?
1 view (last 30 days)
Show older comments
Ian Samuelsson
on 19 Mar 2020
Commented: Star Strider
on 18 Oct 2021
i can't plot the 3D graph
8 Comments
Star Strider
on 22 Mar 2020
In that case, I posted it as an Answer!
I would very much appreciate it if you Accept it!
Accepted Answer
Star Strider
on 22 Mar 2020
I would like to see the code that produced that plot from those equations.
This is as close as I can get to it:
x = [-1 1]*20-5;
y = [-1 1]*20-5;
z = -[x + y - 1;
2*x - y - 5;
(4*x + y - 7)/3];
figure
surf(x,y,[1;1]*z(1,:))
hold on
surf(x,y,[1;1]*z(2,:))
surf(x,y,[1;1]*z(3,:))
hold off
grid on
axis square
2 Comments
More Answers (0)
See Also
Categories
Find more on Directed Graphs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!