plotting graph using symbolic equation
1 回表示 (過去 30 日間)
古いコメントを表示
syms h11 h12 h21 h22 ZL
f=1000 to 1MHz
Zin=h11-(h12*h21)/(h22+(1/ZL)) %equation to plot
simplify(Zin)
pretty(Zin)
Avh=-h21/(Zin*(h22+(1/ZL)))
simplify(Avh)
fplot(f,Avh, 'b-', 'LineWidth', 2)
xlabel('Frequency', 'FontSize', 20);
ylabel('Gain Av', 'FontSize', 20);
title('Gain vs Frequency', 'FontSize', 20);
i need help to plot Av vs frequency symbolically
range of frequency 1KHz to 1MHz,
this is the equation to solve
Zin=h11-(h12*h21)/(h22+(1/ZL)) %equation to plot
simplify(Zin)
pretty(Zin)
Avh=-h21/(Zin*(h22+(1/ZL)))
simplify(Avh)
0 件のコメント
回答 (2 件)
Torsten
2022 年 3 月 19 日
From what you wrote, there is no relation between f and Avh.
Can you write down Avh as a function of f so that - given numerical values for f - you directly get numerical values for Avh ?
0 件のコメント
Star Strider
2022 年 3 月 19 日
None of the variables are explicit functions of frequency. They must be functions of frequency and have all the other values defined numerically for this to work.
syms h11 h12 h21 h22 ZL
f=[1000 1E+6];
Zin=h11-(h12*h21)/(h22+(1/ZL)) %equation to plot
simplify(Zin)
pretty(Zin)
Avh=-h21/(Zin*(h22+(1/ZL)))
simplify(Avh,500)
figure
fplot(Avh,f, 'b-', 'LineWidth', 2) % The Frequency Range Vector 'f' Must Be The Second Argument In 'fplot'
xlabel('Frequency', 'FontSize', 20);
ylabel('Gain Av', 'FontSize', 20);
title('Gain vs Frequency', 'FontSize', 20);
% i need help to plot Av vs frequency symbolically
% range of frequency 1KHz to 1MHz,
% this is the equation to solve
Zin=h11-(h12*h21)/(h22+(1/ZL)) %equation to plot
simplify(Zin)
pretty(Zin)
Avh=-h21/(Zin*(h22+(1/ZL)))
simplify(Avh)
.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!