the logical answer is 1
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Stephen23
am 24 Jul. 2019
Bearbeitet: Stephen23
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!