I have the following code where I call a function in a loop and pause it after every iteration:
[num,txt1,~]=xlsread('test.xlsx',1);
for i=2:5
[num,txt2,~]=xlsread('test.xlsx',i);
for j=1:3
txt_input=txt2(2:end,j);
neurPep=neuroPred(txt1,txt_input);
pause
end
pause
end
I expected the Workspace would show up the values of the computed variables everytime I pause the loop, but only the values corresponding to the very last iteration are being shown towards the end.
What changes do I need to make such that values are updated after every loop and shown in the Workspace?