i have a small problem. i have plotted standard deviation using matlab for a very large matrix. the matrix contains: 24x45x65 --->> hours x days x customers i plotted the standard deviation and standard error. But it only shows me 1 standard devation away..what if i want to see 3 or 6 standard deviation away..is it possible to tweak the code to get it ??
code:
xwkd = x_weekday;
for k2 = 1:size(xwkd,1)
hrmx = xwkd(k2,:,1:64); % All data for hour ‘k1’
hrmn(k2) = trimmean(hrmx(:),0.05); % Mean
hrsd(k2) = std(hrmx(:)); % Standard deviation
end
N = numel(hrmx);
figure(2) % Plot Mean ± Standard Deviation
errorbar([1:24], hrmn, hrsd)
hold on
grid
xlabel('Hour')
ylabel('kWh ± SD')
figure(3) % Plot Mean ± Standard Error
errorbar([1:24], hrmn, hrsd/sqrt(N))
hold on
grid
xlabel('Hour')
ylabel('kWh ± SE')
the data: x_weekday.mat
thank you guys alot