Plotting multiple figures: one figure doesnt show and the other is wrong
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Rodrigo Blas
il 10 Apr 2020
Commentato: Rodrigo Blas
il 13 Apr 2020
vo=10; %%dm^3/min
T=27+273.15; %%k
p=4; %%atm
R=82060; %%dm^3*atm/(k*mol)
k1=.004; %%(mol/dm^3)^.5*min
k2=.3; %%min^-1
k3=.25; %%DM^3/MOL*MIN
cao=p/(R*T);
ca=linspace(cao,.000005);
rx=k1*ca.^(1/2);
rb=k2*ca;
ry=k3*ca.^2;
sby=rb./ry;
sbx=rb./rx;
sbxy=rb./(rx+ry);
plot(ca,sbx,ca,sby,ca,sbxy)
%%hold on
%%plot(ca,sby)
%%plot(ca,sbxy)
xlabel('Ca')
title('Sb/y,Sb/x,Sb/xy Vs. Ca')
legend({'Sb/x','Sb/y','Sb/xy'},'Location','Southwest')
5 Commenti
David Hill
il 10 Apr 2020
And sbxy is not a line. Try plotting it all by itself (its amplitude is very small).
Risposta accettata
Guru Mohanty
il 13 Apr 2020
The three plots are not visible due to following reasons-
- The difference between ‘sbx’ and ‘sbxy’ lies in the range of 10-7 . Although there are two different plots but its looks like single due to very less difference in values.
- The min to max range of three plots are given as-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284102/image.png)
The range of ‘sby’ is much higher than that of both ‘sbx’ and ‘sbxy’. This is the reason why the plot sbxy looks like straight horizontal line at Zero, when three are plotted together.
The plotting should be done with different axes.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Performance in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!