surf_slices(varargin)
Rather than plotting a 3D volume, instead plot a series of slices.
Like surf() except without interpolation in one of the axes.
surf_slices(Z): slices of matrix Z where size(Z)=[m,n]
surf_slices(x,y,Z): slices of matrix Z, where length(x)=n and length(y)=m
surf_slices(x,y,Z,'axis',axis): Change slicing axis (either 1 or 2)
The plot is constructed by overlaying a surf plot with a series of lines plotted along the ridges of the slices.
To reveal the mesh structure of the plot, use:
ax = gca;
ax.Children(end) = 'k';
Note that because a slice has a finite width (the width is the separation of the axis points), you may cut off the end of the data if you set the axis limits manually.
Zitieren als
Talfan Evans (2024). surf_slices(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/65757-surf_slices-varargin), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 | Added image to submission. Fixed axis limits.
|