I'm trying to solve for beta but i keep getting the error " oblique(theta, beta, M_inf) Not enough input arguments. Error in beta (line 19) y = exp(betaln(z,w)). Please help

2 次查看(过去 30 天)
function f = oblique(theta,beta,M_inf)
theta = (2)*pi/180; % angle of attack in rads
M_inf = 1.5:0.1:4.5;
eqn = @(beta) ((2*cot (beta).*(M_inf.^2*sin(beta).^2) - 1)./(M_inf.^2.*(1.4 + cos(2*beta) + 2)))-tan (theta);
beta_guess = (pi/4); % angle in rads;
beta = fzero(eqn, beta_guess);
  5 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Math 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by