MATLAB Answers

0

Error when trying to enter in a simple matrix

Brayden Reiland さんによって質問されました 2019 年 11 月 8 日 20:28
最新アクティビティ Jeremy Marcyoniak さんによって 回答されました 2019 年 11 月 8 日 20:37
Hello,
I am simply trying to enter in a 3x3 matrix into matlab and it is giving me an error code, I have done this many time before and have no idea why its giving me an error this time around.
Thanks

  0 件のコメント

サインイン to comment.

2 件の回答

Fangjun Jiang
Answer by Fangjun Jiang
on 8 Nov 2019 at 20:36

most likely need to be written as
(cos(psi))^2

  0 件のコメント

サインイン to comment.


Answer by Jeremy Marcyoniak on 8 Nov 2019 at 20:37

The little red underlines are not just there for decoration - sin^2(x) is not valid syntax in matlab. I think you want
sin(psi)^2

  0 件のコメント

サインイン to comment.



Translated by