Why the Matlab window returns 'Incorrect' even though the code is correct
Show older comments
Even if my code is correct, the Matlab window is returning 'Incorrect'. Please help.
Answers (1)
Star Strider
on 30 Dec 2017
0 votes
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
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!