matlab - output in different windows -


can show 3-4 outputs(graphical output, same images) in different windows using matlab.some thing following fig.

for more clarification- example-

for i=1:10  vid = videoinput('winvideo', 2); set(vid,'framespertrigger',2); start(vid); imagedata=getdata(vid,1); i=rgb2gray(imagedata); figure,imshow(i); end 

in case 10 frames shown in 10 different figure. not want do. want show frames in same window, if frame changes every time. enter image description here

i not talking figure or subfigure. , output can changed every time in same window.

regards,

you can call created figure using simple code figure(h). this, no new figure window created.

h = figure; %create figure ... figure(h); %call figure h , draw in it. 

using code

h = figure;  i=1:10      vid = videoinput('winvideo', 2);     set(vid,'framespertrigger',2);     start(vid);     imagedata=getdata(vid,1);     i=rgb2gray(imagedata);      figure(h);    imshow(i);   end   

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -