axes

조회 수: 4 (최근 30일)
nsbd
nsbd 2011년 5월 25일
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
Jan
Jan 2011년 5월 25일
Which orange line? Which videos?
So I'm wondering with you.
nsbd
nsbd 2011년 5월 25일
http://www.youtube.com/watch?v=L2oDF3hmTk4&playnext=1&list=PL0950B63F7DB1EC5B
I say again.I'm not getting any error.I write only seems to cause

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Tearle
Matt Tearle 2011년 5월 25일
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
Walter Roberson
Walter Roberson 2011년 5월 25일
image() accepts an axes using the 'Parent' parameter.
image(YourImage, 'Parent', h)
nsbd
nsbd 2011년 5월 25일
thks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by