How to plot variables inside an equation?
Mostrar comentarios más antiguos
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 comentario
Karan Gill
el 18 de Sept. de 2017
To plot symbolic expressions, see fplot ( https://www.mathworks.com/help/symbolic/fplot.html ) and related functions.
Respuestas (1)
Walter Roberson
el 18 de Sept. de 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.
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!