Hi, i want to create a matlab program that will require the user to enter the username and password before they can gain access to the program. so far i have able to do it if the correct password is enter but i cannot get the program to loop corretly. i want if the user enter the wrong combination of password/username lets say maximum 3 times, the system will terminated. plz help me guys…waste a lot of time on doing this.
username1=*****;password1=****;username = upper(get(handles.edit1,'string'));password = upper(get(handles.edit6,'string'));if(strcmpi(username,username1)) if (strcmpi(password,password1)) disp('successfully log into the system'); else close all endelse close allend
Best Answer