Hi,
I am new to matlab, I want to increment a number when its true.
i tried doing this as a script
global variable;variable = true;while (variable) a=1; a=a+1; dips(a);end
shouldn't this display an incremented value
1234...
but all i get is
2222..
Am i doing something wrong? help!
Best Answer