필터 지우기
필터 지우기

Loop / Maximise window

조회 수: 2 (최근 30일)
Shane Browne
Shane Browne 2020년 9월 6일
댓글: Shane Browne 2020년 9월 8일
Hi,
I am a beginner using the loop given below. My aim is to search through slices of a hypercube, so the loop looks through 120 images.
The window keeps minimising, so it is hard to inspect each image that appears. How do I keep it maximised?
Second question: Is there a way to manually control the loop so that I can click through it at will?
figure,
for i=1:z
imshow(CL(:,:,i),[]),title(sprintf('%d',i))
pause (0.1)
end
Help is greatly appreciated

채택된 답변

David Hill
David Hill 2020년 9월 6일
Just put a stop in your function by clicking on the ' - ' on the right of the line number. A red dot will appear. I would place a stop of the pause line (line number 49). The execute the function and the code will stop there. To continue, hit the continue on top.
  댓글 수: 1
Shane Browne
Shane Browne 2020년 9월 8일
Thanks David ! That gives me control of it. Is there a way to keep the window with the image visible? It drops behind each time I hit continue.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by