How to plot variables inside an equation?
古いコメントを表示
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 件のコメント
Karan Gill
2017 年 9 月 18 日
To plot symbolic expressions, see fplot ( https://www.mathworks.com/help/symbolic/fplot.html ) and related functions.
回答 (1 件)
Walter Roberson
2017 年 9 月 18 日
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.
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!