필터 지우기
필터 지우기

i need b value for every p using trial and error method

조회 수: 3 (최근 30일)
gowshya
gowshya 2023년 9월 30일
편집: John D'Errico 2023년 9월 30일
m=1.6;
r=1.4;
p=[1:1:14];
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
tan[p]=[2*cot[b]]*[[m.^2*sin[b]*sin[b]-1]/[m.^2[r+cos[2*b]]+2]];
disp(b)
  댓글 수: 2
Torsten
Torsten 2023년 9월 30일
p is in degrees ?
John D'Errico
John D'Errico 2023년 9월 30일
편집: John D'Errico 2023년 9월 30일
You are writing in the wrong language. Square brackets are not how you pass arguments into a function. You use () instead. I'd strongly suggest you start with the MATLAB Onramp tutorial, and learn basic MATLAB syntax.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by