how to convert array to vector

조회 수: 3 (최근 30일)
Kiki Chung
Kiki Chung 2020년 8월 12일
댓글: Kiki Chung 2020년 8월 13일
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일
theta=0:.01:.12;%row vector
M=71420*theta./((1+(theta*71420/94.42).^.5).^.2);%row vector
  댓글 수: 4
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개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by