フィルターのクリア

How can I plot a constant Z value with varying X and Y ?

17 ビュー (過去 30 日間)
Jasnoor Singh
Jasnoor Singh 2016 年 6 月 24 日
コメント済み: Torsten 2016 年 6 月 24 日
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?

採用された回答

Torsten
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.
  7 件のコメント
Tien Tran
Tien Tran 2016 年 6 月 24 日
I understand that, but Z is obtained from experimental data, it is not a function of x and y. Can I plot it?
Torsten
Torsten 2016 年 6 月 24 日
https://www.mathworks.com/matlabcentral/fileexchange/5105-making-surface-plots-from-scatter-data
Best wishes
Torsten.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by