Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Subplot (m,n,k)
subplot(3,2,1),plot(…)
Ejemplo:
t=0:0.3:5;
>> x=t.^2;
>> y= 2*t-5
>> z= sin(t)
>> u=cos(t);
>> v=abs(t);
>> w=sqrt(t);
BURBUJAS
clear,clc,hold off
axis([-0. 1. -0. 1.])
axis('square')
axis('off')
hold on
plot([0,1,1,0,0],[0,1,1,0,0])
h=pi/10;
t=0:h:pi/2;
xx=cos(t);
yy=sin(t);
for n=1:60
r =rand(1)*0.1;
xc=rand(1);
yc=rand(1);
x=xx*r+xc;
y=yy*r+yc;
plot(x,y)
end
hold off
GRAFICOS 3D
t=-6:0.2:8;
>> x=t;
>> y=3-t;
>> z=cos(t);
>> plot3(x,y,z)
>> grid
GRAFICOS EN UN PLANO
>> z=x.*exp(x.^2-y.^2);
>> title('z=x.*exp(-x.^2-y.^2)');
>> xlabel('x');ylabel('y');zlabel('z');
>> zoom on
>>