From: siew tee kong on
hallo ...

i have the following :

T(k)=input('Temperature : ');
Tau(k)=input('Verweilzeit : ');
UV(k)=input ('UV ERgebniss : ');

let's say i accidentally enter the wrong value for T and matlab prompt me for the value of the next input which is Tau.. is there anyway i can 'undo' and reenter value for T again.

I am entirely new to matlab... appreciate all the help i can get....

kong
From: Andy on
"siew tee kong" <kongsiewtee(a)gmail.com> wrote in message <i2cgj8$n4l$1(a)fred.mathworks.com>...
> hallo ...
>
> i have the following :
>
> T(k)=input('Temperature : ');
> Tau(k)=input('Verweilzeit : ');
> UV(k)=input ('UV ERgebniss : ');
>
> let's say i accidentally enter the wrong value for T and matlab prompt me for the value of the next input which is Tau.. is there anyway i can 'undo' and reenter value for T again.
>
> I am entirely new to matlab... appreciate all the help i can get....
>
> kong

Instead of running your script at the command line, you could make a GUI that lets you enter all of the data before submitting it.

Other than that, you could have some special input when prompted for Tau that identifies that the user wishes to go back. That is, check if the input was, for example, the string 'back'. If it was, reprompt the user for T. But the GUI would be better.
From: Andy on
Sorry for the double post. I just remembered this:

http://www.mathworks.com/matlabcentral/fileexchange/25862-enhanced-input-dialog-box

You don't need to build your own GUI.