|
From: Rahul Uk on 7 May 2008 04:04 Are we able to enter elements to a variable while running a loop as in C/C++?????
From: Rahul Uk on 7 May 2008 04:10 "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message <fvrnpj$j35$1(a)fred.mathworks.com>... > Are we able to enter elements to a variable while running a > loop as in C/C++????? Basically is it possible to enter values at runtime in matlab???
From: Jos on 7 May 2008 04:57 "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message <fvro4u$7u6$1(a)fred.mathworks.com>... > "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message > <fvrnpj$j35$1(a)fred.mathworks.com>... > > Are we able to enter elements to a variable while running a > > loop as in C/C++????? > Basically is it possible to enter values at runtime in matlab??? Yes, for instance using input a = 1 ; while a > 0, a = input('Enter a number (0 to quit): ') ; disp(['Your number squared equals ' num2str(a*a)]) end hth Jos
|
Pages: 1 Prev: 2008a OOP problem Next: find user and org info for current install? |