フィルターのクリア

How to plot symbolic function ?

2 ビュー (過去 30 日間)
andrea
andrea 2020 年 9 月 4 日
回答済み: David Hill 2020 年 9 月 4 日
Hello,
So I have a function f of a symbolic variable let's say x , and I would like to plot my function versus 1/x.
How can I do that ?
This is an example of my code, I'd like to plot E_norm versu 1/b.
syms b ; % 1/T
syms N ;
Z = 2*(2*cosh(b))^N ;
F = log(Z)/N;
E_norm = -diff(F,b);
E_norm = simplify(E_norm) ;
fplot(E_norm,[ 0 6])

回答 (1 件)

David Hill
David Hill 2020 年 9 月 4 日
Not sure exactly what you want.
syms b ; % 1/T
syms N ;
Z = 2*(2*cosh(b))^N ;
F = log(Z)/N;
E_norm = -diff(F,b);
E_norm = simplify(E_norm) ;
fplot(E_norm,[ .1, 6]);
hold on
fplot(1/b,[.1,6]);

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by