axes
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi guys
just wondering.
while I using Matlab axes.Under the orange line is warning.
in fact everything is working properly.but I watched videos, that does not happen.
ty
2 Kommentare
Akzeptierte Antwort
Matt Tearle
am 25 Mai 2011
I'm guessing you're getting the Code Analyzer warning "Calling AXES(h) without an output in a loop can be very slow. Include 'h' in plot function arguments instead."
Unfortunately, image doesn't accept an axes handle as a first argument, so this warning isn't particularly useful in this case. Because of that, it's possible that the guy who made the video disabled that warning. (It's also possible he has an older version of MATLAB.)
To suppress warnings, you can add %#ok at the end of the line, or to disable that warning altogether, go to the Preferences and select Code Analyzer from the left-hand pane. In the bottom pane on the right you will see all the possible messages, and their status. Scroll to the category "Potential Performance Problems". Deselect the third and/or fourth options, as you choose.
3 Kommentare
Walter Roberson
am 25 Mai 2011
image() accepts an axes using the 'Parent' parameter.
image(YourImage, 'Parent', h)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!