Why the Matlab window returns 'Incorrect' even though the code is correct
显示 更早的评论
Even if my code is correct, the Matlab window is returning 'Incorrect'. Please help.
回答(1 个)
Star Strider
2017-12-30
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!