Help with load profile curve _ i have half hourly (48 readings) of a single day.
10 views (last 30 days)
Show older comments
hi all.
what i have is 48 kwhr readings( half hourly readings) of a single day. i would like to plot it against time on x-axis, from 12AM to 12PM, in increments of 30 minutes.
X axis will be somethings like :-
12AM 12:30AM 1AM 1:30AM 2AM 2:30AM etc upto 12PM
is this possible in matlab ?
i have a dat file with counts,
so importing the data using :- [count]=importdata('C:\Users\radzzz\Documents\count.dat')
i would like to use plot(time,count) or similar to plot the graph. i made an attempt but i get bad readings on x axis and i couldnt include 30 min intervals.
i would like to feed this load profile into one of the simulink blocks so that i can get the energy cost, is this possible ? can i input matlab .m files into simulink ?
please help.
thanks.
4 Comments
Answers (1)
Walter Roberson
on 2 Dec 2012
year = 2012 * ones(n*2,1);
month = 12 * ones(n*2,1);
day = 2 * ones(n*2,1);
hour = reshape([0:n-1; 0:n-1], 2*n, 1);
minutes = repmat([0;30], n, 1);
xdate = datenum(year,month,day,hour,minutes,minutes);
plot(xdate,count);
datetick('x','HH:MMPM')
2 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!