matlab ribbon,MATLAB 3D函数Ribbon()

它创建一个功能区图。

句法

ribbon(Y) // It plots the columns of Y as separate three-dimensional ribbons using

X = 1:size(Y, 1).

ribbon(X, Y) // It plots X versus the columns of Y as three-dimensional strips. X and Y are vectors of a similar size or matrices of the same size. X can be the row or a column vector, and Y a matrix with length(X) rows.

ribbon(X, Y, width) // It specifies the width of the ribbons. The default is 0.75.

ribbon(axes_handle, ...) // It plots into the axes with handle axes_handle instead of the current axes (gca).

h = ribbon(...) // It returns a vector of handles to surface graphics objects. ribbon returns one handle per strip.

例子

创建功能区图

2-D曲线在3-D中呈带状。

y_1=sin?(t), y_2=e^(-.15t) sin?(t)

y_3=e^(-.8t) sin?(t)

for 0≤t≤5π

t=linspace (0, 5*pi, 100);

y1=sin(t);

y2=exp(-.15*t).*sin(t);

y3=exp(-.8*t).*sin(t);

y=[y1;y2;y3];

rib_width=0.2;

ribbon(t', y', rib_width)

输出

matlab-3d-ribbon-output.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值