I have tried the following but failed to update T
function [delta_T,T] = fcn(u)
m=100;
T = 20;
delta_T = u/m;
T_max = 100;
while T <= T_max
T = T + delta_T;
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!