Notice the orange highlight and red underline in your function? Hover over that to see what the error message is.
Function saying too many outputs
1 次查看(过去 30 天)
显示 更早的评论
I am trying to create a function that takes the i, j, and k values of a vector and calculates the magnitude and unit vector. If I attempt to call the function from the command line, I either only end up with the magnitude, or I get an error. Any suggestions on how to make/change the function to return two outputs?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/505538/image.png)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!