Info

This question is closed. Reopen it to edit or answer.

I want to extract data of specific days from a file having long data.How can I do it?

1 view (last 30 days)
the data is like following
Year| MT| DY| HR| a b c
1993| 1| 1| 0| 38124| -29.4| 18088|
1993| 1| 1| 1| 38134| -29.6| 18089|
1993| 1| 1| 2| 38141| -29.6| 18092|
1993| 1| 1| 3| 38162| -29.4| 18085|
1993| 1| 1| 4| 38146| -28.6| 18081|
1993| 1| 1| 5| 38155| -28.9| 18067|
1993| 1| 1| 6| 38155| -29.9| 18057|
1993| 1| 1| 7| 38156| -30.4| 18058|
1993| 1| 1| 8| 38149| -30.1| 18073|
1993| 1| 1| 9| 38152| -29.3| 18082|
1993| 1| 1| 10| 38147| -28.5| 18085|
1993| 1| 1| 11| 38145| -27.9| 18090|
1993| 1| 1| 12| 38137| -27.7| 18086|
1993| 1| 1| 13| 38127| -27.8| 18086|
1993| 1| 1| 14| 38122| -27.6| 18087|
1993| 1| 1| 15| 38128| -27.8| 18085|
1993| 1| 1| 16| 38124| -28.0| 18085|
1993| 1| 1| 17| 38123| -28.1| 18087|
1993| 1| 1| 18| 38122| -28.1| 18087|
1993| 1| 1| 19| 38122| -28.3| 18087|
1993| 1| 1| 20| 38124| -28.4| 18087|
1993| 1| 1| 21| 38121| -28.3| 18089|
1993| 1| 1| 22| 38118| -28.5| 18087|
1993| 1| 1| 23| 38115| -28.6| 18086|
1993| 1| 2| 0| 38116| -28.4| 18088|
1993| 1| 2| 1| 38112| -28.7| 18087|
1993| 1| 2| 2| 38118| -29.0| 18090|
1993| 1| 2| 3| 38134| -28.9| 18095|
1993| 1| 2| 4| 38144| -27.8| 18101|
1993| 1| 2| 5| 38152| -27.2| 18095|
1993| 1| 2| 6| 38153| -27.8| 18084|
1993| 1| 2| 7| 38148| -28.5| 18082|
1993| 1| 2| 8| 38141| -27.9| 18087|
1993| 1| 2| 9| 38125| -27.2| 18089|
1993| 1| 2| 10| 38103| -27.7| 18086|
1993| 1| 2| 11| 38090| -28.0| 18085|
1993| 1| 2| 12| 38094| -27.8| 18086|
1993| 1| 2| 13| 38076| -28.1| 18085|
1993| 1| 2| 14| 38092| -27.2| 18088|
1993| 1| 2| 15| 38082| -27.8| 18087|
1993| 1| 2| 16| 38071| -27.8| 18088|
1993| 1| 2| 17| 38083| -28.0| 18087|
1993| 1| 2| 18| 38091| -28.3| 18088|
1993| 1| 2| 19| 38102| -28.0| 18091|
1993| 1| 2| 20| 38092| -27.6| 18090|
1993| 1| 2| 21| 38098| -28.0| 18089|
1993| 1| 2| 22| 38107| -28.1| 18090|
1993| 1| 2| 23| 38104| -28.6| 18087|
1993| 1| 3| 0| 38110| -28.6| 18089|
1993| 1| 3| 1| 38122| -28.9| 18086|
this goes on and on
i need a programme say i will put the date 1993-01-01 it will give me the data of all the corresponding hours of this date and one hour before the day started and two hour after the day ended and should store in a matrix.
Look forward for any bodys reply.
thank you

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!