How to plot a graph of this matrix ?
조회 수: 2 (최근 30일)
이전 댓글 표시
i can't plot the 3D graph
댓글 수: 8
Star Strider
2020년 3월 22일
In that case, I posted it as an Answer!
I would very much appreciate it if you Accept it!
채택된 답변
Star Strider
2020년 3월 22일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!