here is part of my code…
...for l = 1:length(WtLabDt) appnd_data = []; for m = 1:length(s.labs) appnd_data = [appnd_data;e.(s.labs{m})(:,l)]; end OVR_MEAN(:,l) = mean(appnd_data); end
Matlab is showing light red lines under 'appnd_data' (in line 4 on lhs) asking me to pre-alloacte it for speed. Does line 2 not pre-allocate it ?
Best Answer