How to plot variables inside an equation?
Afficher commentaires plus anciens
I am trying to apply a parametric method for the presizing of an electric motor. I am following the steps in this scientific paper:
hal.archives-ouvertes.fr/hal-00874371/document
Once I have calculated the values of different variables I am left with this equation (15):
I have defined Vb Vcr and Kb as symbolic variables so as this: syms Vb Vc; Kb=sym(Vb/Vcr). What I finally want to obtain is a graphic with Pb in the y axis and Vb/Vcr (Kb) in the x axis as shown in the previuos image. How can I do this? I add the code in my command window:

Thanks a lot!!!
1 commentaire
Karan Gill
le 18 Sep 2017
To plot symbolic expressions, see fplot ( https://www.mathworks.com/help/symbolic/fplot.html ) and related functions.
Réponses (1)
Walter Roberson
le 18 Sep 2017
fplot(Pb)
Note: it is a lot more easy for people to assist you if you post the code instead of a picture of the code.
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!