豆粑粑,matlab 同一条线,不同的color
虽然是画线,但其实是通过surface 来实现的。
在3D空间中画一个很细的面。
例子是y=sin(x)
效果还是相当华丽的。
x = 0:.05:2*pi;
y = sin(x);
z = zeros(size(x));
col =y+rand(size(y))*0.02;% This is the color, vary with x in this case.
surface(,,,,...
'facecol','no',...
'edgecol','interp',...
'linew',4);
colormap(cool)
页:
[1]