Documente Academic
Documente Profesional
Documente Cultură
a) y=x2/1-x2
>> x=-10:0.2:10;
>> y=x.^2./(1-x.^2);
>> plot(x,y)
b) y=x2/1+x2
>> x=-10:0.2:10;
>> y=x.^2./(1+x.^2);
>> plot(x,y)
b) y=x2/1+x2
en el intervalo [-10,10]
))
>> x=-pi:0.05:pi;
>> y=tan(sin(x)-sin(tan(x)));
>> plot(x,y)
3.
>> x=0:0.05:2*pi;
>> subplot(121);
>> plot(x,x.^3-3*x.^2+2*x-1);
>> title('x.^3-3*x.^2+2*x-1');
>> axis tight
>> subplot(122);
>> plot(x,sin(x))
>> title('sen(x)');
>> axis tight
)) en el intervalo [-
,x
>> x=-5:0.1:5;
>> y=x.^2.*exp(-x.^2);
>> plot(x,y)
>> figure(2);
>> plot(x,y,'.')
>> figure(3);
>> plot(x,y,'c-.')
>> figure(4);
>> plot(x,y,'kd--')
[-5,5]
>> figure(1);
>> grid
>> title('Grafica 4')
>> xlabel('Eje X')
>> ylabel('Eje Y')
>> x=-5:0.1:4;
>> y=x;
>> [X,Y]=meshgrid(x,y);
>> Z=X.^2.*exp(-Y.^2);
>> surf(X,Y,Z)
, (x,y)