"Nezbytným krokem k tomu, abyste od života získali věci, po kterých toužíte, je rozhodnout se, co vlastně chcete."
% http://stackoverflow.com/questions/12775452/matlab-how-to-make-a-figure-current-how-to-make-an-axes-current
try
% tiche vypsani figure
figHandles = get(0,'Children');
for i=1:length(figHandles)
if (figHandles(i).Number == fig_number)
f=figHandles(i);
set(0, 'currentfigure', f); % for figures
break;
end
end
if (isempty(f))
f=figure;
end
catch
f=figure(fig_number);
end
end .