Professional Documents
Culture Documents
Trabajo 6
Trabajo 6
0.8
0.6
Emision de CO2 en m3
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-2 -1 0 1 2 3 4 5
tiempo
EJEMPLO 2
0.2(x-2)4-3.2(x+1)3+1.9(x-3)2-1.5(x+5)+0.7
>> fplot(@(x)0.2.*(x-2).^4-3.2.*(x+1).^3+1.9.*(x-3).^2-
1.5.*(x+5)+0.7,[-4,4],
'bh-','markersize',16,
'markeredgecolor','k','markerfacecolor','g')
>> grid off
>> xlabel 'concentracion reactivo A'
>> ylabel 'ph'
400
300
200
100
ph
-100
-200
-300
-400
-4 -3 -2 -1 0 1 2 3 4
concentracion reactivo A
EJEMPLO 3
cos(x)x2-0.5cos(x)x+0.7
>> fplot(@(x)cos(x).*x.^2-0.5.*cos(x).*x+0.7,[-9,5],
'bo:','linewidth',2,'markersize',18,
'markerfacecolor','y','markeredgecolor','k')
>> grid on
>> xlabel 'tiempo'
>> ylabel 'velocidad'
40
20
0
velocidad
-20
-40
-60
-8 -6 -4 -2 0 2 4
tiempo
EJEMPLO 4
2.1(x+1)+1.2x2+0.9
>> fplot(@(x)2.1.*exp(x+1)+1.2.*x.^2+0.9,[-2,4],
'rv-','linewidth',2, 'markersize',16,
'markerfacecolor','g','markeredgecolor','k')
>> grid on
>> xlabel 'velocidad'
>> ylabel 'concentracion'
300
250
concentracion
200
150
100
50
0
-2 -1 0 1 2 3 4
velocidad
EJEMPLO 5
cos(x+1)+√x-3.2x3+1.2x
>> fplot(@(x)cos(x+1)+sqrt(x)-3.2.*x.^3+1.2.*x,[0,10],
'bp--','linewidth',2, 'markersize',16,
'markeredgecolor','k','markerfacecolor','y')
>> grid off
>> xlabel 'tiempo'
>> ylabel 'ph'
0
-500
-1000
-1500
ph
-2000
-2500
-3000
0 1 2 3 4 5 6 7 8 9 10
tiempo
EJEMPLO 6
arctan(x+1.2)+sin(x+0.5)-x2-1.2
>> fplot(@(x)atan(x+1.2)+sin(x+0.5)-x.^2+0.7.*x-1.2,
[-5,5], 'k^:','linewidth',2,'markersize',16,
'markeredgecolor','b','markerfacecolor','y')
>> grid on
>> xlabel 'valor experimental'
>> ylabel 'valor calculado'
0
-5
-10
valor calculado
-15
-20
-25
-30
-5 -4 -3 -2 -1 0 1 2 3 4 5
valor experimental