%reset the while_condit condition to 1
while_condit = 1;
%repeat code within until answer is no
while while_condit < 2;
%asks the user if they want to open a new graph
answer = input('do you want to input another graph for comparison? [yes, no] only \n');
%computes the answer to check wether a new graph is to be opened
while_condit = while_condit + answer ;
%opens matlabs GUI interface for the user to specify which graph they want to open
if while_condit == 1
uigetfile('.fig')
else
end
sorry i didnt notice the code didnt make much sence when i copied it