plotting graph using symbolic equation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Torsten
il 19 Mar 2022
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 Commenti
Star Strider
il 19 Mar 2022
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 Commenti
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




