I have to show a progress bar in matlab guide that appears while running FOR loop and shows progress for each iteration. Moreover, the user should not be able to close it until the calculation stops, so as to prevent the user from making any changes. Example code is as follows
MBTs = minMBT:stepMBT:maxMBT;MATs = minMAT:stepMAT:maxMAT;i=1;for MAT = MATs j = 1; for MBT = MBTs %some calculations
j = j + 1; end i = i + 1;end
Best Answer