Задача 1.1
t=[0:0.01:1];
y=exp(-2*t).*cos(20*t);
plot(t,y)
Задача 1.2
t=[0:0.01:2];
y1=10*(exp(-2*t));
y2=cos(20*t);
plotyy(t,y1,t,y2)

Задача 1.3
t=[0:0.2:2*pi];
y1=(exp(-0.5*t));
y2=cos(3*t);
plot(t,y1,'y.-',t,y2,'mo:')
Задача 1.4
t=[0:0.2:2*pi];
y2=cos(t);
stem(t,y2,'mo:')
Задача 1.5
t=[0:0.2:5];
y=10*(exp(-2*t));
stairs(t,y,'k^-')

Задача 1.6
t=[0:0.3:5];
y=10*(exp(-2*t));
E=rand(size(4.7*t));
errorbar(t,y,E, 'k^-')

Задача 1.7
t=[1:1000];
y=30*atan(t).^3;
loglog(t,y)

Задача 1.8
t=[0:0.01:2*pi];
x=sin(t);
y=cos(t).^3
plot(x,y)

Задача 2.1
u=[0:0.05:pi]';
v=[0:0.05:pi];
x=cos(u).*cos(v);
y=cos(u).*sin((v));
z=sin(u)*ones(size(v));
plot3(x,y,z,'.-')

|