How can I plot a constant Z value with varying X and Y ?
17 ビュー (過去 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 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!