From: Samiov on 12 May 2010 19:44 Hi, I've obtained a numerical result saved in a variable X and I want to know how to display it in an edit text in my GUI?
From: us on 12 May 2010 19:55 "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfeg7$jhm$1(a)fred.mathworks.com>... > Hi, > I've obtained a numerical result saved in a variable X and I want to know how to display it in an edit text in my GUI? one of the solutions v=pi; uh=uicontrol('position',[10,10,100,100],'style','edit','string',v); us
From: Samiov on 12 May 2010 20:54 "us " <us(a)neurol.unizh.ch> wrote in message <hsff4p$13f$1(a)fred.mathworks.com>... > "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfeg7$jhm$1(a)fred.mathworks.com>... > > Hi, > > I've obtained a numerical result saved in a variable X and I want to know how to display it in an edit text in my GUI? > > one of the solutions > > v=pi; > uh=uicontrol('position',[10,10,100,100],'style','edit','string',v); > > us ______________________________________________________________________ Hi us, I found another solution: set(handles.edit4,'String',X); Anyway thanks a lot.
From: us on 12 May 2010 21:39 "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfijc$avp$1(a)fred.mathworks.com>... > "us " <us(a)neurol.unizh.ch> wrote in message <hsff4p$13f$1(a)fred.mathworks.com>... > > "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfeg7$jhm$1(a)fred.mathworks.com>... > > > Hi, > > > I've obtained a numerical result saved in a variable X and I want to know how to display it in an edit text in my GUI? > > > > one of the solutions > > > > v=pi; > > uh=uicontrol('position',[10,10,100,100],'style','edit','string',v); > > > > us > ______________________________________________________________________ > Hi us, > I found another solution: > > set(handles.edit4,'String',X); > > Anyway thanks a lot. no, this is the SAME solution... % we could write uh=uicontrol('position',[10,10,100,100],'style','edit'); v=pi; set(uh,'string',v); % thus, your HANDLES.EDIT4 is simply the equivalent of UH... us
From: Samiov on 12 May 2010 22:00 "us " <us(a)neurol.unizh.ch> wrote in message <hsfl7p$t3$1(a)fred.mathworks.com>... > "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfijc$avp$1(a)fred.mathworks.com>... > > "us " <us(a)neurol.unizh.ch> wrote in message <hsff4p$13f$1(a)fred.mathworks.com>... > > > "Samiov " <Samyw69(a)yahoo.fr> wrote in message <hsfeg7$jhm$1(a)fred.mathworks.com>... > > > > Hi, > > > > I've obtained a numerical result saved in a variable X and I want to know how to display it in an edit text in my GUI? > > > > > > one of the solutions > > > > > > v=pi; > > > uh=uicontrol('position',[10,10,100,100],'style','edit','string',v); > > > > > > us > > ______________________________________________________________________ > > Hi us, > > I found another solution: > > > > set(handles.edit4,'String',X); > > > > Anyway thanks a lot. > > no, this is the SAME solution... > > % we could write > uh=uicontrol('position',[10,10,100,100],'style','edit'); > v=pi; > set(uh,'string',v); > % thus, your HANDLES.EDIT4 is simply the equivalent of UH... > > us ______________________________________________________________________ Ah ok, I didn't know that...it's because I'm a beginner, thank you..
|
Next
|
Last
Pages: 1 2 Prev: 'ghost' path? Next: Bayesian Neural Networks and Uncertainty 'Error' Bars |