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

3 次查看(过去 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 个评论
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