How to generating surface without plotting?
Ältere Kommentare anzeigen
I wonder if it's possible to create a surface by ''surf'' without plotting?
That means, I only want the surface data, but I don't want the figure.
Anyone has idea?
Thanks a lot and happy new year :)
2 Kommentare
Ameer Hamza
am 30 Dez. 2020
Can you explain what surface data are you referring to?
Daniel Chou
am 30 Dez. 2020
Bearbeitet: Daniel Chou
am 30 Dez. 2020
Akzeptierte Antwort
Weitere Antworten (1)
Cris LaPierre
am 30 Dez. 2020
If I look at the first example on the surf documentation page, it first creates X, Y and Z, then uses surf to plot/create the surface. So is what you want X,Y and Z?
% Example modified to create surface data but not the surface
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
% surf(X,Y,Z)
1 Kommentar
Daniel Chou
am 30 Dez. 2020
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
