How to plot more than one graph on matlab
Favorites|Homepage
Subscriptions | sitemap
HOME > Other - Science > How to plot more than one graph on matlab

How to plot more than one graph on matlab

[From: ] [author: ] [Date: 11-04-22] [Hit: ]
how else to do this please?Tj10=[86.23709965 82.74929 79.26148035 75.7736707 72.......
Hello all.
Any ideas how to plot more than one plot on the same graph using matlab?
try plotting each corresponding graphs first, and then combining the two to see what matlab does using my commands. how else to do this please?


Tj10=[86.23709965 82.74929 79.26148035 75.7736707 72.28586104 68.79805139 65.31024174 61.82243209 58.33462243 54.84681278 51.35900313 47.87119348 44.38338382 40.89557417 37.40776452 25.5492117
];
>> Tj20=[100.7950325 97.53774443 94.27973759 91.02101195 45471.27907 84.50140422 81.24052214 77.97892125 74.71660156 71.45356305 68.18980574 64.92532961 61.66013468 58.39422093 55.12758838 44.01566101
];
And the corresponding values at each value for the above is

>> C10=[1.107435267 1.03653695 0.968432489 0.902941451 0.839898372 0.779151228 0.720560099 0.663995982 0.609339743 0.55648119 0.505318243 0.4557562 0.407707079 0.361089029 0.3158258 0.171144452
];
>> C20=[1.091980538 1.028630986 0.967687238 0.908999312 0.852429244 0.797849903 0.745143946 0.69420289 0.644926292 0.597221011 0.551000557 0.506184503 0.462697961 0.420471112 0.37943878 0.248074647
];

To get single plots, do
plot(Tj10,C10) or plot(Tj20,C20)
and the plot makes sense. however if I try to combine both it doesn't work:
plot(Tj10,C10,Tj20,C20)

Does anyone know how to combine the two so i have two plots on the same graph? i tried using the hold command too to hold each plot but once the 2nd one goes in the whole plot disintegrates. :(

thanks.

-
It's working perfectly.

The problem is your range.
Tj10 goes from 25.5492 to 86.2371 but Tj20 goes up to 45471.27907

You can see large numbers but can't see small numbers on the same plot.
Maybe your Tj20 numbers should be checked (you have a 45471.27907 which may be a mistake)
1
keywords: How,than,one,more,graph,matlab,plot,to,on,How to plot more than one graph on matlab
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .