how to use fzero?
Mostra commenti meno recenti
the code im trying to run is
m1=input('Enter Mach number=');
y=input('Enter the Specific Heat ratio of working fluid=');
ang=input('Enter theta =');
syms b
t=ang*(pi/180);
f=tan(t)-2*cot(b)*((((m1^2)*(sin(b))^2)-1)/((m1^2*(y+cos(2*b)))+2));
fzero(f,25)
what i actually need is to find the value of b which makes the function "f" zero where t,m1 and y are numerical values. so i need to solve the above equation for b. any tips how i can do this?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Calculus in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!