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
Dyuman Joshi
Dyuman Joshi 2023년 4월 7일
"This is the full code"
How do you run your code? How do you call the function oblique?

댓글을 달려면 로그인하십시오.

답변 (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