changing mean and median
Afficher commentaires plus anciens
i have a column vector of 100 rows and would like to calculate its progressive median and mean for example (at the first row, only consider that row; at second row, consider first 2 rows; at third row, consider the first 3 rows and so on upto 100th row). I have used a for loop with sum/i to calculate the mean but I have failed to break through in calculating median. Kindly provide a solution or any alternatives.
4 commentaires
Fangjun Jiang
le 17 Juil 2020
Can't you use mean() and median()?
Anita Nabatanzi
le 17 Juil 2020
Rachel Surridge
le 17 Juil 2020
Does your data have more than one column?
Anita Nabatanzi
le 17 Juil 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!