I have a problem with this nested for loop:
eta = [1e-3:1e-2:9e-1];
HN =5;
for ii = 1:numel(eta)
for v = 1:HN
DeltaEta(v) = eta(ii)*6;
end
end
This code gives the output of DeltaEta as a 1x5 vector.
However, I want the result to be 90x5 vector where DeltaEta is computed 5 times for each value of eta.
I believe the problem is with the way I am nesting the loops.
It seems trivial but I can't get the desired output, any leads would be appreciated.
eta.'.*ones(1,HN)*6