Professional Documents
Culture Documents
Graficas
Graficas
HERRAMIENTAS
COMPUTACIONALES
TAREA #3
“GRÁFICAS”
Nombre:
● Pérez Piña Jimena
Grupo: 1BV3
Profesor(a): Jesús Arturo González Alemán
Fecha de entrega: 15 de Marzo de 2022
GRAFICAS
1. PROBLEMA 1:
>> subplot(2,2,1);
x = linspace(0,5);
y = (20*(5+3.*x)./(1+0.04.*x));
plot(x,y);
title('Subplot 1: t = 5')
subplot(2,2,2);
x1 = linspace(0,10);
y = (20*(5+3.*x1)./(1+0.04.*x1));
plot(x1,y);
title('Subplot 2: t = 10')
subplot(2,2,[3,4]);
x2 = linspace(0,25);
y = (20*(5+3.*x2)./(1+0.04.*x2));
plot(x2,y);
title('Subplot 3: t = 25')
grid on
>> x = linspace(0,300);
>> y = (20*(5+3.*x)./(1+0.04.*x));
>> plot(x,y)
>> grid on
2. PROBLEMA 2:
>> x = linspace(0,9);
>> y = (1000*(1+3.*x))./(5+x);
>> plot(x,y)
>> grid on
3. PROBLEMA 3:
>> x = linspace(-3,6);
>> f = @(a,b,x) a.^(x+b);
>> plot(x,f(3,1,x),x,f(3,0,x),x,f(3,-2,x))
>> x = linspace(-3,6);
>> f = @(a,b,x) a.^(x);
>> f1 = @(a,b,x) a.^x - b;
>> plot(x,f(3,1,x),x,f(3,0,x),x,f1(3,-2,x))
4. PROBLEMA 4:
>> x = [-5,5];
>> f1 = 2.*exp(0.24.*x);
>> f2 = 0.5.*exp(-0.58.*x);
>> plot(x,f1);
>> hold on
>> plot(x,f2);
>> grid on
5. PROBLEMA 5:
>> x = [-1:0.01:3];
>> f = x.^2.*exp(-x);
>> plot(x,f)
>> grid on
6. PROBLEMA 6:
>> x = [-1:0.01:5];
>> f = x.*2.^(3-x);
>> plot(x,f)
>> grid on
7. PROBLEMA 7:
>> x = linspace(-2,3);
>> y = exp(2.*x) - 3.*exp(x) + 2;
>> plot(x,y)
>> grid on
>> ylim([-1,10])
8. PROBLEMA 8:
>> x = [0 25 50 75 100];
>> y = [12 44 81 96 99];
>> plot(x,y)
>> hold on
>> x1 = [0:0.01:100];
>> y1 = 100./(1 + 7.*exp(-0.069.*x1));
>> plot(x1,y1)
>> grid on
9. PROBLEMA 9:
>> x = -2:0.01:2;
>> A(1,:) = exp(x.^2);
>> A(2,:) = 3./(1+exp(-5.*x));
>> A(3,:) = exp(-x);
>> plot(x,A)
y =
@(a,x)x.^a
>> x = linspace(0,2);
>>
plot(x,y(5/2,x),x,y(3/2,x),x,y(1/2,x),x,y(1/3,x),x,y(1/10,x),x,y(1/5,x))
14. PROBLEMA 14:
function [] = problema14(d,F)
theta = atan(4./d);
beta = atan(6./d);
P = F.*(sin(beta)./sin(theta));
T = P.*cos(theta) + F.*cos(beta);
plot(d,P)
hold on
plot(d, T)
grid on
end
>> problema14([2:0.05:12],400)
>> circulo(0,0,18,0,pi/3)
>> circulo(36,0,18,pi/3,pi)
>> circulo(54,18*sqrt(3),18,pi,(4/3)*pi)
>> circulo(18,18*sqrt(3),18,-(2/3)*pi,0)
>> circulo(1,9,12)
>> circulo(7,1,2)
>> circulo(1,1,4)
>> circulo(7,9,6)