From: aamir zeb on
Please can anyone tell whats the command for making the program to take data at runtime?
From: us on
"aamir zeb" <addikted(a)gmail.com> wrote in message <i1k0c9$nik$1(a)fred.mathworks.com>...
> Please can anyone tell whats the command for making the program to take data at runtime?

a hint:

help input;
help inputdlg;

us
From: aamir zeb on
"us " <us(a)neurol.unizh.ch> wrote in message <i1k0pc$k6r$1(a)fred.mathworks.com>...
> "aamir zeb" <addikted(a)gmail.com> wrote in message <i1k0c9$nik$1(a)fred.mathworks.com>...
> > Please can anyone tell whats the command for making the program to take data at runtime?
>
> a hint:
>
> help input;
> help inputdlg;
>
> us

i wrote
prompt={'Enter the PATTERN'};
Pattern=INPUTDLG(prompt);
some function

it gives error

Conversion to double from cell is not possible.

can anyone help
Regards
From: us on
"aamir zeb" <addikted(a)gmail.com> wrote in message <i1k3k5$n5k$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <i1k0pc$k6r$1(a)fred.mathworks.com>...
> > "aamir zeb" <addikted(a)gmail.com> wrote in message <i1k0c9$nik$1(a)fred.mathworks.com>...
> > > Please can anyone tell whats the command for making the program to take data at runtime?
> >
> > a hint:
> >
> > help input;
> > help inputdlg;
> >
> > us
>
> i wrote
> prompt={'Enter the PATTERN'};
> Pattern=INPUTDLG(prompt);
> some function
>
> it gives error
>
> Conversion to double from cell is not possible.
>
> can anyone help
> Regards

well...
the section

prompt={'Enter the PATTERN'};
Pattern=inputdlg(prompt); % <- note: NO caps(!)...
% is working fine and is what you asked for in your OP...

everything else is due to problems in your subsequent code, which you don't show...
a hint:
- just make sure you understand what PATTERN returns(!)...

us
From: aamir zeb on
"us " <us(a)neurol.unizh.ch> wrote in message <i1k4g8$itq$1(a)fred.mathworks.com>...
> "aamir zeb" <addikted(a)gmail.com> wrote in message <i1k3k5$n5k$1(a)fred.mathworks.com>...
> > "us " <us(a)neurol.unizh.ch> wrote in message <i1k0pc$k6r$1(a)fred.mathworks.com>...
> > > "aamir zeb" <addikted(a)gmail.com> wrote in message <i1k0c9$nik$1(a)fred.mathworks.com>...
> > > > Please can anyone tell whats the command for making the program to take data at runtime?
> > >
> > > a hint:
> > >
> > > help input;
> > > help inputdlg;
> > >
> > > us
> >
> > i wrote
> > prompt={'Enter the PATTERN'};
> > Pattern=INPUTDLG(prompt);
> > some function
> >
> > it gives error
> >
> > Conversion to double from cell is not possible.
> >
> > can anyone help
> > Regards
>
> well...
> the section
>
> prompt={'Enter the PATTERN'};
> Pattern=inputdlg(prompt); % <- note: NO caps(!)...
> % is working fine and is what you asked for in your OP...
>
> everything else is due to problems in your subsequent code, which you don't show...
> a hint:
> - just make sure you understand what PATTERN returns(!)...
>
> us
let me give an example
Pattern =['hello']
please tell