matlab show the figure and update the text of the uicontrol -


after 6 hours, solved problem! :]

this question:

please me: how can show figure when function 'gui_400' called?

in addition, want text of 's.ty' updated numbers between 1 100. in order this, called 'test' function , updated uicontrol of s.ty.

in other words, show figure , update text of 's.ty' number of '1', in number of '2'... till 100.

in code, figure shown when 'test' function ends , that's why figure showed number '100'.

function [] = gui_400()      hfig = figure('units','pixels',...         'position',[300 300 424 430],...         'menubar','none',...         'name','gui_3',...         'numbertitle','off',...         'resize','off');                  im = imread('0.png');         haxes = axes('parent',hfig,'units','pixels','position',[0 72 424 359]);  %#   position easy define         image(im,'parent',haxes);  %# plot image         set(haxes,'visible','off', 'handlevisibility', 'off');          %# turn axes visibility off          s.tx = uicontrol('style','text',...          'unit','pix',...          'position',[0 32 424 40],...          'string','מכין תמונה 1 מתוך 3',...          'backgroundcolor','r',...          'fontsize',23);         mystr = 'alon';          temp = uicontrol('style','text',...          'unit','pix',...          'position',[0 0 424 40],...          'string',mystr,...          'backgroundcolor','r',...          'fontsize',23);     = 1:1000         set(temp,'string',num2str(i));        drawnow;    end end 

Comments