% MULTISURF(x,y,z,color)绘制多个不同颜色的表面
同样的数字。变量x, y和z必须是单元格数组,每个元素
%包含要绘制的数据。可变颜色必须是单元格
%数组,包含以字母或表示的表面颜色
% 1 x3向量。
%
%附加输出h = MULTISURF(x,y,z,color)返回一个向量
%包含每个表面对象的句柄。
%
%的例子:
% [xs,ys] = meshgrid(1:0. 0:2*pi);
% x = {x x x};
% y = {ys ys ys};
% z = {sin(xs) sin(xs/2) sin(xs/10)};
% color = {'r','g',[0 0 1]};
% multisurf (x, y, z,颜色)
%
作者:Alessandro Masullo 2015
%http://www.bristol.ac.uk/engineering/people/alessandro-masullo
代码通过改变曲面的CData参数来工作,这样每一个曲面都有一个唯一的CData常量值。使用用户输入颜色创建的特定颜色图允许不同的表面使用不同的颜色。
引用作为
亚历山德罗Masullo(2021)。绘制多个曲面multisurf(x,y,z,color)(//www.tatmou.com/matlabcentral/fileexchange/57550-plot-multiple-surfaces-multisurf-x-y-z-color), MATLAB中央文件交换。检索.