How can I plot a constant Z value with varying X and Y ?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jasnoor Singh
am 24 Jun. 2016
Kommentiert: Torsten
am 24 Jun. 2016
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 Kommentare
Akzeptierte Antwort
Torsten
am 24 Jun. 2016
[X,Y] = meshgrid(1:50,1:50);
Z=3*ones(length(Y),length(X));
surf(X,Y,Z);
Best wishes
Torsten.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!