Borrar filtros
Borrar filtros

How to find the occurrence of x as a function of time of day?

3 visualizaciones (últimos 30 días)
Ara
Ara el 3 de Mzo. de 2013
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 comentarios
Miroslav Balda
Miroslav Balda el 3 de Mzo. de 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))
Ara
Ara el 3 de Mzo. de 2013
Thanks for helping me. Actually, the first plot you suggested me is a plot that show x vs time. But I want vs of time of day. Because I am going to extend the code for 30 days at 24 hrs. Another question, is there any command to give me the how many x>0.2 are in this column and then count it. Last question is, how I can know how many satellites observed x>.2 with exact number of it. My data define as a excel file with 27 columns; x (0.02-0.8),time(as you named time of day(0-24)), y(numbers of satellite(1-32))and so on. Size are identical.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Satellite and Orbital Mechanics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by