Howw to scale the nonlinearity in the figure for visual comparison
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rodney Manalo
le 9 Mai 2018
Modifié(e) : Ameer Hamza
le 9 Mai 2018
Here is the code
if true
Vgo=1.2;
Tr=300;
T=[248:423];
n=3.6;
x=1;
Vbetr=0.7;
Vbe=Vgo-(T/Tr)*(Vgo-Vbetr)-((4-n)-x)*(k*Tr/e)*log(T/Tr)
plot(T, Vbe)
end
clearly the plot of Vbe is nonlinear, but I want to visually show it that it is nonlinear in the plot since the plot shows as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190423/image.png)
How do I "exaggerate" the nonlinearity of the plot to compare it with a straight line?
2 commentaires
Réponse acceptée
Ameer Hamza
le 9 Mai 2018
Since nonlinear term include log(T/Tr), therefore the nonlinearity will signify at smaller values of T. Consider changing the range of T as follow
T=0:200;
will signify the nonlinearity
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188311/image.jpeg)
.
3 commentaires
Ameer Hamza
le 9 Mai 2018
Modifié(e) : Ameer Hamza
le 9 Mai 2018
The following code will produce something similar
Vgo=1.2;
Tr=300;
T = 0:250;
n=3.6;
x=1;
Vbetr=0.7;
k=1.38e-23;
e=1.602e-19;
Vbe=Vgo-(T/Tr)*(Vgo-Vbetr)-((4-n)-x)*(k*Tr/e)*log(T/Tr);
Vbe_straight=Vgo-(T/Tr)*(Vgo-Vbetr);
plot(T, Vbe, T, Vbe_straight)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!