Why the Matlab window returns 'Incorrect' even though the code is correct

Answers (1)

The only possibility I can think of is that in the instructions, x and y are lower-case. In your code, they are upper case. MATLAB is case-sensitive, so if the application is looking for lower-case variables, it could throw an error.
Try them as lower-case — x instead of X and y instead of Y — and see if that works.
If it does not Please contact the course administrator as the instructions tell you.

Categories

Asked:

on 30 Dec 2017

Answered:

on 30 Dec 2017

Community Treasure Hunt

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

Start Hunting!