Filter löschen
Filter löschen

Loop / Maximise window

2 Ansichten (letzte 30 Tage)
Shane Browne
Shane Browne am 6 Sep. 2020
Kommentiert: Shane Browne am 8 Sep. 2020
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

Akzeptierte Antwort

David Hill
David Hill am 6 Sep. 2020
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 Kommentar
Shane Browne
Shane Browne am 8 Sep. 2020
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by