Filter löschen
Filter löschen

Finding the mean of data with different array sizes

9 Ansichten (letzte 30 Tage)
Beck Hunter
Beck Hunter am 9 Jul. 2021
Kommentiert: Beck Hunter am 9 Jul. 2021
Hello,
I have multiple arrays, each with a percentage column and a data column. The lengths of the arrays are all different, although the values all go from 0 to 100% in the first column.
I would like to average the data in order to investigate any trends, but I am not sure how to average the data while the matrix lengths are all different.
I am not wanting to fill any data points with zero, as I am looking to maintain the 0-100% for each of the data sets. I have attached a graph of all of the data points plotted of which I am looking to average.
Is there a way to do this?
Thanks,
Beck

Akzeptierte Antwort

KSSV
KSSV am 9 Jul. 2021
You can get all those arrays into same size using interp1 and hen use mean.
  3 Kommentare
KSSV
KSSV am 9 Jul. 2021
Arange the arays into matrix and call the function mean.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by