Hi, can please help me, I key the equation in the code but it comes out error unexpected Matlab expression I don't what to do. can someone help me? thank you

 채택된 답변

Star Strider
Star Strider 2017년 8월 12일

0 개 추천

In MATLAB, the multiplication is the asterisk ‘*’, not a dot ‘.’.
If you want to do element-wise operations, use the dot operator with the multiplication operator ‘.*’, and with other operators to do element-wise division and exponentiation. The other expression, ‘x.y’ will be interpreted as referring to a structure, and will throw a different error if that structure does not appear in your workspace.
See the documentation on Getting Started (link) to understand the essentials of MATLAB programming, and Array vs. Matrix Operations (link) to understand the ‘dot operator’.

댓글 수: 2

Eugene  loh
Eugene loh 2017년 8월 12일
Thank you
Star Strider
Star Strider 2017년 8월 12일
My pleasure.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Function Creation에 대해 자세히 알아보기

질문:

2017년 8월 12일

댓글:

2017년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by