代码搜索结果
找到约 12,326 项符合
M 的代码
liti41.m
ezplot('cos(t)^3','sin(t)^3',[0,2*pi])
liti1.m
x=linspace(0,2*pi,30);
y=sin(x);
z=cos(x);
plot(x,y,'r',x,z,'go')
liti27.m
fplot('abs(exp(-j*x*(0:9))*ones(10,1))',[0,2*pi])
liti30.m
x=randn(50,3);y=x*[-1 2 1;2 0 1;1 -2 3];
plotmatrix(y,'*r')
liti31.m
income=[3.2 4.1 5.0 5.6];
outgo=[2.5 4.0 3.35 4.9];
subplot(2,1,1);plot(income)
subplot(2,1,2);plot(outgo)
liti19.m
[x,y,z]=peaks(30);
waterfall(x,y,z)
xlabel('x-axis')
ylabel('y-axis')
zlabel('z-axis')
title('函数peaks的waterfall图');
liti5.m
x=linspace(0,2*pi,30);
z=cos(x);
y=sin(x);
plot(x,z,:)
hold on
plot(x,y)
zoom on
liti4.m
x=linspace(0.0001,0.01,1000);
y=sin(1./x);
plot(x,y)
axis([0.005 0.01 -1 1])
liti14.m
[x,y,z]=peaks(30);
surf(x,y,z)
axis([-3 3 -3 3 -10 10])
%axis off
%shading interp
%colormap(hot)
m=moviein(15);
for i=1:15
view(-37.5+24*(i-1),30)
m(:,i)=getframe;
end
movie(m)
liti32.m
[x,y,z]=sphere(16);
X=[x(:)*.5 x(:)*.75 x(:)];
Y=[y(:)*.5 y(:)*.75 y(:)];
Z=[z(:)*.5 z(:)*.75 z(:)];
S=repmat([1 .75 .5]*10,prod(size(x)),1);
C=repmat([1 2 3],prod(size(x)),1);
scatter3(X(:),Y(: