How can I plot a constant Z value with varying X and Y ?
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to plot a value of Z=3 for X=1:50 and Y=1:50 so that I can get a plane surface plot. Any suggestions please?
댓글 수: 0
채택된 답변
Torsten
2016년 6월 24일
[X,Y] = meshgrid(1:50,1:50);
Z=3*ones(length(Y),length(X));
surf(X,Y,Z);
Best wishes
Torsten.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!