Professional Documents
Culture Documents
fplot
1/24
Ventana de Comandos
fplot
2/24
Ventana de Comandos
fplot
3/24
Ventana de Comandos
ezplot
>> ezplot('exp(x)')
>> grid
4/24
Ventana de Comandos
ezplot
5/24
Ventana de Comandos
ezplot
6/24
Ventana de Comandos
area
Y =
3,
1,
2,
[1, 5, 3;
2, 7;
5, 3;
6, 1];
area(Y)
grid on
colormap summer
set(gca,'Layer','top')
title 'Stacked Area Plot'
7/24
Ventana de Comandos
area
close all
x=[0:pi/100:2*pi];
y=sin(x);
area(x,y)
grid on
colormap summer
set(gca,'Layer','top')
title 'Area'
8/24
Ventana de Comandos
area
close all
x=[0:pi/100:2*pi];
y=sin(x)+1;
area(x,y)
grid on
colormap summer
set(gca,'Layer','top')
title 'Area'
9/24
Ventana de Comandos
area
close all
x=[0:pi/100:2*pi];
y1=sin(x)+1;
y2=x-x+1;
area(x',[y1;y2]')
grid on
colormap summer
set(gca,'Layer','top')
title 'Acumulado'
10/24
Ventana de Comandos
area
close all
x=[0:pi/100:2*pi];
y1=sin(x)+1;
y2=cos(x)+1.1*x;
area(x',[y1;y2]')
grid on
colormap summer
set(gca,'Layer','top')
title 'Acumulado'
11/24
Ventana de Comandos
bar
close all
x = -2.9:0.2:2.9;
bar(x,exp(-x.*x),'r')
grid
12/24
Ventana de Comandos
bar
close all
Y = round(rand(5,3)*10);
subplot(2,2,1)
bar(Y,'group')
title 'Group'
subplot(2,2,2)
bar(Y,'stack')
title 'Stack'
subplot(2,2,3)
barh(Y,'stack')
title 'Stack'
subplot(2,2,4)
bar(Y,1.5)
title 'Width = 1.5'
13/24
Ventana de Comandos
bar
close all
Y = randn(3,5);
h = bar(Y);
set(get(h(1),'BaseLine'),...
'LineWidth',2,'LineStyle',':');
colormap summer
14/24
Ventana de Comandos
bar3
close all
Y = cool(7);
subplot(2,3,1)
bar3(Y,'detached')
title('Detached')
subplot(2,3,2)
bar3(Y,0.25,'detached')
title('Width = 0.25')
subplot(2,3,3)
bar3(Y,'grouped')
title('Grouped')
subplot(2,3,4)
bar3(Y,0.5,'grouped')
title('Width = 0.5')
subplot(2,3,5)
bar3(Y,'stacked')
title('Stacked')
subplot(2,3,6)
bar3(Y,0.3,'stacked')
title('Width = 0.3')
colormap([1 0 0;0 1 0;0 0 1])
15/24
Ventana de Comandos
bar3
close all
t = 0:pi/20:2*pi;
plot(t,sin(t),'-.r*')
hold on
plot(t,sin(t-pi/2),'--mo')
plot(t,sin(t-pi),':bs')
grid
16/24
Ventana de Comandos
bar3
close all
t = 0:pi/20:2*pi;
plot(t,sin(2*t),'-mo',...
'LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[.49 1 .63],...
'MarkerSize',12)
grid
17/24
Ventana de Comandos
ezsurf
18/24
Ventana de Comandos
surfl
t=0:0.001:0.009;
v=900:1025;
[T V]=meshgrid(t,v);
aux1=16*pi^2*(T.^2).*((V918).^2).*((V-1011).^2);
aux2=aux1+(2*V-1929).^2;
w=T./aux2;
z=35000000*w;
surfl(t,v,z);
shading interp;
colormap(pink);
19/24
Ventana de Comandos
surfl
[X,Y] = meshgrid(-2:.05:2);
Z = peaks(X,Y);
surfl(X,Y,Z)
shading interp
colormap('copper')
20/24
Ventana de Comandos
sphere
sphere
axis vis3d
colormap('copper')
21/24
Ventana de Comandos
cilinder
cylinder
h = findobj('Type','surface');
set(h,'CData',rand(size(get(h,'CData'))))
axis vis3d
colormap('copper')
22/24
Ventana de Comandos
cilinder
t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(2+cos(t));
surf(X,Y,Z)
axis square
23/24
Ventana de Comandos
cilinder
close all
t = 0:0.1:4;
[X,Y,Z] = cylinder(3*t-12);
surf(X,Y,Z)
24/24