MATLAB Answers


This question is closed. Reopen it to edit or answer.

Error when trying to enter in a simple matrix

1 view (last 30 days)
Brayden Reiland
Brayden Reiland on 8 Nov 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (2)

Fangjun Jiang
Fangjun Jiang on 8 Nov 2019
most likely need to be written as

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

Community Treasure Hunt

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

Start Hunting!