Hi, I have a set of M and theta correspondance data. The thera range from 0 to 0.12 radian. Because I want to proof below eqaution, so I want to plug the theta in to get the new M by this eqaution.
Here is my code:
But I don't know why the result of M become 13x13 table shown as below. I am not sure it is array or not. How can I convert M result to become like theta table?

 採用された回答

David Hill
David Hill 2020 年 8 月 12 日

0 投票

theta=0:.01:.12;%row vector
M=71420*theta./((1+(theta*71420/94.42).^.5).^.2);%row vector

4 件のコメント

Kiki Chung
Kiki Chung 2020 年 8 月 13 日
Thank you! That is what I want.
Kiki Chung
Kiki Chung 2020 年 8 月 13 日
編集済み: Kiki Chung 2020 年 8 月 13 日
Hi, if the equation is M = 94.42*tanh(theta*71420/94.42)
Then should I add " .* " instead of " * "? Should I input the equation as :
theta = 0:0.01:0.12
M = 94.42.*tanh(theta.*71420/94.42)
David Hill
David Hill 2020 年 8 月 13 日
You do not need '.' when multiplying by a scalar
Kiki Chung
Kiki Chung 2020 年 8 月 13 日
thank you so much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

質問済み:

2020 年 8 月 12 日

コメント済み:

2020 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by