hello all , i'm new to the matlab and trying to learn so my question is very basic
i have this code for example :
i = input('choose a number ');
if i == a
disp ('wrong!' );
when the user input 5 it will display a massege , otherwise a diffrenet massege
but it only works once , if i input for example 3 it will display the correct massege , but when i enter any number again nothing happens i have to rerun the code.
how can i fix this ? i want to input any number any number of times with the correct massege appearing without having to rerun the code