Sunteți pe pagina 1din 22
Tecnológico de Estudios Superiores de Cuautitlán Izcalli
Dirección General
Ingeniería en Sistemas Computacionales
Calculo Integral
REALIZO: EQUIPO
REVISO: ING. MARQUEZ ELOIZA JOSE ENRIQUE
FORMATO DE EVIDENCIAS
Graphos 1

x=-5:0.3:5;

y=x; [x,y]=meshgrid(x,y);

z=sin(3*x)+cos(3*y);

mesh(z);

x=-3:0.2:3

y=x

[x,y]=meshgrid(x,y)

z=(x^3+y^4)-sin(2*y);

mesh(z);

x=-3:0.2:3;

y=x;

[x,y]=meshgrid(x,y);

z=sin(2*x+3*y);

mesh(z);

x=-10:0.5:2;

y=x; [x,y]=meshgrid(x,y);

z=sin(sqrt(x.^2+y.^2))./sqrt(x.^2+y.^2);

mesh(z);

t=linspace(0,2,20);r=sqrt(t);cylinder(r)

[x,y]=meshgrid(-1:1:1);

n=20;

for j=1:n

t=(2*pi/19)*(j-1);

z=2*sin(t)*exp(-x.^2-y.^2);

surf(x,y,z),axis([-11-11-22])

F(j)=getframe;

end

movie(F,6)

[x,y,z]=meshgrid(linspace(-3,3,120));

f =(x.^2+(9*y.^2)./4+z.^2-1).^3-((9*y.^2).*(z.^3))./80-(x.^2).*(z.^3); p=patch(isosurface (x,y,z,f,0)); set(p,'FaceColor', 'r', 'EdgeColor', 'n'); daspect ([1 1 1]); view (3); camlight ('right');lighting phong;

clc

vid=videoinput('winvideo'); set(vid,'TriggerRepeat',inf);

vid.FrameGrabinterval=1;

 start(vid); try % media=[];

while(vid. FramesAcquired<=110)%Stop after 110 frames

IM=getdata(vid,2);

IMGray=rgb2gray(IM(:,:,1:3));

Imbw=im2bw(IMGray,0.5);

subplot(2,3,1);imshow(IM(:,:,:,1));title('ImputVideo-Image')

subplot(2,3,2);imshow(IMbw);title('Black&WhiteVideo')

subplot(2,3,3);imshow(IMGray);title('GrayScaleVideo')

subplot(2,3,4);imshow(IMneg);title('NegativeImageVideo')

%*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

i1=IM(:,:,:,1)

i2=IM(:,:,:,2)

i1=rgb2gray(i1(:,:,1:3));

i2=rgb2gray(i2(:,:,1:3));

m=abs(double(i1)-double(i2))/256;

subplot(2,3,5);imshow(m);title('Movement')

% sum(sum(m))

% media=[media sum(sum(m))];

if sum(sum(m))>850 disp('Movement'); beep end %*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* end

[x,y,z]=sphere(45);

colormap(topomap1);

alpha('direct');

alphamap([.1;1];

axis off vis3d; campos ([2,13,10]); camlight; lightinggouraud;

cplxroot(z)

[x,y,z]=peaks;n=20;

for j=1:n

t=(2*pi/19)*(j-1);

z1=sin(t)*z;

surf(x,y,z1),axis([-3 3 -3 3 -5 5]) F(j)=getframe; end

movie(F,0.1)

[x,y]=meshgrid(-1:.1:1);n=20;

for j=1:n

t=(2*pi/19)*(j-1);

z=2*sin(t)*exp(-x.^2-y.^2);

surf(x,y,z),axis([-1 1 -1 1 -2 2]) F(j)=getframe; end

movie(F,0.01)

z=cplxgrid(12);

cplxmap(z,z.^2)

[x,y]=meshgrid (linspace(-1,1,50));

z=cos((x.*y)./(x.^2+y.^2+1));

surf(x,y,z),colorbar

clear; clc;close all

% Define paraboloid

x=-2: .1: 2; y=x;

[x,y]=meshgrid(x,y); z= .5*(x.^2+y.^2);

% Draw 3D figure, keep track of its handle

h= surf(x,y,z);

% Keep axes constant

axis([-2 2 -2 2 0 20]) %Define title and labels for reference xlabel('y'); zlabel('z') %Stretch paraboild and show updates for i=1: .1 :5; set(h, 'xdata', x, 'ydata', y, 'zdata', i*z) drawnow end %Modify azimuth (horizontal rotation) and update drawing for az=-

37.5:.5:30
view(az, 30)
drawnow
end

u=(-2:0.1:2)';

v=0:0.1:2*pi;

x=exp(u)*cos(v);

y=u*ones(size(v));

z=exp(u)*sin(v);

surf(x,y,z)

xlabel('v');ylabel('u');zlabel('z')

t=0:0.001:0.009;

v=900:1025;

[t,v]=meshgrid(t,v)

aux1=16*pi^2*(t.^2).*((v-918).^2).*((v-1011).^2);

aux2=aux1+(2*b-1929).^2;

w=t./aux2;

z=35000000*w;surfl(t,v,z);

rotate3d;

xmin=min(x(:));

xmax=max(x(:)); ymin=min(y(:)); ymax=max(y(:)); zmin=min(z(:));

daspect([2,2,1])

xrange=linspace(xmin,xmax,8);

yrange=linspace(ymin,ymax,8);

zrange=3:4:15;

[cx cy cz]=meshgrid(xrange,yrange,zrange);

hcones=coneplot(x,y,z,u,v,w,cx,cy,cz,5);

set(hcones,'FaceColor','red','EdgeColor','none') hold on

wind_speed=sqrt(u.^2+v.^2+w.^2);

hsurfaces=slice(x,y,z,wind_speed,[xmin,xmax],ymax,zmin); set(hsurfaces,'FaceColor','interp','EdgeColor','none') hold off axis tight; view(30,40);axis off camproj perspective;

camzoom(1.5)

camlight rigth;lighting phong

set(hsurfaces,'AmbientStrength',.6)

set(hcones,'DiffuseStrength',.8)

surface(peaks,flipud(X), 'FaceColor','texturemap', 'EdgeColor','none', 'CDataMapping','direct') colormap(map)

view(-35,45)

xx = -10:.15:10;

[xx,yy] = meshgrid(xx,yy); zz = sin(sqrt(xx.^2+yy.^2)).*(1./(sqrt(xx.^2+yy.^2))); zz2 = -zz; numframes = 120;

figure(1)

set(gca,'NextPlot','replacechildren'); FF(120) = struct('cdata',[],'colormap',[]); axis([0 150 0 150 -1.5 1.5]) for i = 1:numframes pp = (zz.*(i/numframes)) + (zz2.*(1-(i/numframes))); meshc(pp), colormap('bone'); FF(i)= getframe; end movie2avi(FF,'contouredmesh2.avi', 'quality', 100)

clear,clf

hold on

dth=2*pi/40;

th=0:dth:2*pi;

r=ones(size(th)); colormap gray for n=1:51

b=n-1;

x(n,:)=cos(th)*(1-0.25*cos(b*0.3));

y(n,:)=sin(th)*(1+0.25*cos(b*0.3));

z(n,:)=n*0.3*ones(size(th));

m=n+9;

if floor(m/2)*2==m

plot3(z(n,:),x(n,:),y(n,:)-5)

end end

surfl(z,x,y+2,[-10,60])

axis([0 13 -5 15 -10 5]) shading flat view([10 -10 10]) text(5.2,8.4,3,'direccion de flujo') text(-5,8, 'lado de la tobera')

xd=[5,10,9];

yd=[5,5,4.5];

zd=[3,3,3];

plot3(xd,yd,zd)

axis('off') text(10,-15,-2,'secciones transversales de chorro') hold off

h=Aero.Animation;

h.FramesPerSecond=10;

h.TimeScaling=5;

idx1=h.createBody('pa24-250_orange.ac','Ac3d');

idx2=h.createBody('pa24-250_blue.ac','Ac3d');