MATLAB: Loop

loops

Hi I need to do two loops, where the inputs of both need to be 0.4:0.01:0.99, any help on how to achieve this buy by still going through the conventionally i=1: etc (as need this for output).

Best Answer

KVals = 0.4:0.01:0.99;
for K = 1 : length(KVals)
thisval = KVals(K);
...
end