How to find the occurrence of x as a function of time of day?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi Everyone,
For the past few hours I've been trying to find solution to my problem, but I still no progress. The situation is this: I have a column data named x with size of (5357x1)that all are integer. Time is also defined as a column with same size. what I want is,
1) To plot the occurrence of this column as a function of time of day? such a this plot will help me to know if there is a preferred time of day when they occur.
2) To count x>0.2 and give the exact numbers of it ultimately plot it.
Any help shall be highly appreciated.
Thanks,
Ara
2 Kommentare
Miroslav Balda
am 3 Mär. 2013
You described well the vector x, but not the time vector. If the name of the vector be 'timeofday' you may plot it through the command
plot(timeof day,x)
The second issue is a bit more complicated:
I = find(x>.2);
plot(timeofday(I),x(I))
Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!