From: Samiov on
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
"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
"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
"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
"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..