I'm trying to create a time vector for a whole week with a 15 minutes step. I want to plot it later on with my data. I managed to create a single day 15 minutes step vector, but when I plot it with my data I can't (its length is 95 instead of 96).
dv = 1/24:1/96:24/24+2/96;
datestr(dv)
Also, I wan't to show the date, and time in the format 'dd:MM hh:mm). Here is my code at the moment, I'm getting an error in bsxfun, it says Operands must be numeric arrays.
t1 = datetime(2013,11,1,8,0,0,'Format','MM:dd: HH:mm:ss');
t2 = datetime(2013,11,7,8,0,0,'Format','MM:dd: HH:mm:ss')
days = t1:t2
% days = days(~ismember(weekday(days),[1 7]));
out = bsxfun(@plus, days, dv.');
datestr(out)
finally, when I get the vector for the whole week, it's a string format, how can I convert it to numbers and plot it? It would be great if you provided me with the right references to guide me as I'm new in this field.
Thanks