Percentile calculation along time

4 vues (au cours des 30 derniers jours)
Ricardo Duarte
Ricardo Duarte le 7 Juin 2021
Commenté : Ricardo Duarte le 7 Juin 2021
Dear all,
I have a time series analysis in which i should calculate its percentiles.
Let me explain:
I have 5 matrices (A,B,C,D,E) in which each one of them corresponds to a determined sound pressure level (spl) calculate along 5 seconds. This means that matrix A corresponds to the spl at the second 1, matrix B corresponds to the spl at the second 2, matrix C corresponds to the spl at the second 3, etc, etc;
All matrices are 3000x3000 size that corresponds to the coordinates of the spl in space.
So, now I would like to calculate the percentile of the combination of all of these along the time.
I've been using prctile(A,50) for example, but it gives me a matrix 1x3000 which is not what I want, since I need to plot the percentile in a map, in which each point corresponds to a specific coordinate.
Thanks in advance for your help,

Réponse acceptée

Matt J
Matt J le 7 Juin 2021
Modifié(e) : Matt J le 7 Juin 2021
T=cat(3,A,B,C,D,E) ;
prctile( T ,50,3 )
  2 commentaires
Ricardo Duarte
Ricardo Duarte le 7 Juin 2021
Thank you!
Ricardo Duarte
Ricardo Duarte le 7 Juin 2021
In case I have more then 20 matrices how can I concatenate then automatically?
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Descriptive Statistics and Visualization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by