控制系統仿真
Contents
[NOTE] Updated November 22, 2021. This article may have outdated content or subject matter.
3
3-1
X = [4 15 7 3 1];
pie(X)
X = [4 15 7 3 1];
labels = {'100-90','89-80','79-70','69-60','59-0'};
pie(X,labels)
pie3(X,labels)
X = reordercats(X,{'100-90','89-80','79-70','69-60','59-0'});
Y=[4 15 7 3 1];
bar(X,Y)
bar3(X,Y)
3-2
plot(x1,y1)
x1 = linspace(0,2*3.1415926,125);
y1=cos(x1.*(0.5+3.*sin(x1)/(1+x1.*x1)))
3-3
z = linspace(-45,45,500);
x = z.*sin(3.*z)
y = z.*cos(3.*z)
3-4
t = linspace(-200,200,5000);
y1=sin(2.*t+0);
y2=sin(2.*t+3.1415926/3);
y3=sin(2.*t+3.1415926/2);
y4=sin(2.*t+3.1415926);
subplot(2,2,1)
plot(x,y1)
subplot(2,2,2)
plot(x,y2)
subplot(2,2,3)
plot(x,y3)
subplot(2,2,4)
plot(x,y4)
Author w0x7ce
LastMod 2021-11-22