Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Error when trying to enter in a simple matrix

1 回表示 (過去 30 日間)
Brayden Reiland
Brayden Reiland 2019 年 11 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2019 年 11 月 8 日
most likely need to be written as
(cos(psi))^2

Jeremy
Jeremy 2019 年 11 月 8 日
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

Community Treasure Hunt

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

Start Hunting!

Translated by