%pouziti funkce subplot

figure(1)
subplot(2,2,1)
sphere
axis equal tight
subplot(2,2,2)
t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(2+cos(t));
surf(X,Y,Z)
axis square tight
subplot(2,2,3)
rectangle('Position',[-1 1 1 1],'Curvature',[1,1],'LineWidth',2)
grid on;
axis equal
subplot(2,2,4)
x = 0:pi/10:5*pi;
y=x.*sin(-0.5*x);
plot(x,y,'LineWidth',2)
hold on
plot(x,6*sin(0.5*x),'LineWidth',2)
hold off
axis tight
grid on;
