the logical answer is 1
1 view (last 30 days)
Show older comments
ans =
logical
1
I have a pretty big code with a lot of cycles and calculations, is it possible to find out where it comes from?
2 Comments
Answers (1)
Stephen23
on 24 Jul 2019
Edited: Stephen23
on 24 Jul 2019
The MATLAB Editor will highlight assignments without a semi-colon:
This is why you should never ignore the warnings shown by the editor: you improve your code and make it easier to track down things like this.
However this does not work for function calls without an assignment....
You can find other solutions here:
https://www.mathworks.com/matlabcentral/answers/20989-how-to-find-from-what-row-an-outprint-comes-from
https://www.mathworks.com/matlabcentral/answers/31597-how-to-find-out-the-output-variable-ans-of-exactly-which-statement-is
etc.etc.
0 Comments
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!