You are on page 1of 2

EJERCICIO 4

A
>> T=[-10,-5,0,5,10,15,20,25,30,40,50,100,150,200,250,300];
>>
P=[0.26,0.40,0.61,0.87,1.23,1.71,2.34,3.17,4.25,7.38,12.35,101.3,475.8,1554,3973,8581];
>> [T',P'];
>> plot(T,P)
>> title('Temperatura vs Presion')
>> xlabel('Temperatura')
>> ylabel('Presion')
Temperatura vs Presion
9000

8000

7000

6000

5000
Presion

4000

3000

2000

1000

0
-50 0 50 100 150 200 250 300
Temperatura
B 9000
Temperatura vs Presion

>> semilogx(T,P,'o--r'), grid on 8000

>> title('Temperatura vs Presion') 7000

>> xlabel('Temperatura') 6000

>> ylabel('Presion') 5000


Presion

4000

3000

2000

1000

0
0 1 2 3
10 10 10 10
Temperatura
4
Temperatura vs Presion
10
>> semilogy(T,P,'o--b'), grid on
>> title('Temperatura vs Presion') 3
10
>> xlabel('Temperatura')
>> ylabel('Presion')
2
10

Presion
1
10

0
10

-1
10
-50 0 50 100 150 200 250 300
Temperatura

>>loglog(T,P,'o--y'), grid on
>> title('Temperatura vs Presion')
>> xlabel('Temperatura')
>> ylabel('Presion') Temperatura vs Presion
4
10

3
10

2
10
Presion

1
10

0
10

-1
10
0 1 2 3
10 10 10 10
Temperatura

You might also like