surf_slices(varargi​n)

版本 1.0.0.0 (2.4 KB) 作者: Talfan Evans
Plot 3D data as series of slices in specified axis
115.0 次下载
更新时间 2018/1/19

查看许可证

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.

引用格式

Talfan Evans (2024). surf_slices(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/65757-surf_slices-varargin), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Added image to submission. Fixed axis limits.
Added lines to the edges of the slices (where they cross the data limits) for visual clarity.
Fixed bug where plotting the transpose of a matrix causes the overlaid lines to be drawn incorrectly, even when setting 'axis'=2.
Fixed option parsing bug.