Effacer les filtres
Effacer les filtres

Returning values from Blockproc

2 vues (au cours des 30 derniers jours)
Ahmed Abdulla
Ahmed Abdulla le 5 Juil 2020
Modifié(e) : Matt J le 5 Juil 2020
I used the following code to calculate the mean of blocks of data(compress down my matrix), but i was wondering if there is a way to just return the values within the block without taking the mean because im thinking of finding the correlation between the values of the block from a certain dataset with the values of a block within another.
Data{j} =blockproc(Variable2, [Factor Factor], @(x) mean(x.data,'all','omitnan')) ;

Réponse acceptée

Matt J
Matt J le 5 Juil 2020
Modifié(e) : Matt J le 5 Juil 2020

Plus de réponses (0)

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by