Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
How to return cell array columns that match criteria based on cellfun functions
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have data for measurements of temperature, pressure for several profiles contained in different cell arrays.
I have several cell arrays. Each cell within each cell array contain double arrays with data organised in columns which correspond to each profile e.g. 14 cell arrays each containing 1000 x 1 double. I want to match corresponding columns between cell arrays (between temp and pressure) that both satisfy conditions I have written (see below). However I am unsure how to proceed from here. I want to return each column where the individual doubles within the columns satisfy my criteria.
Thanks in advance!
SAF_P = cellfun(@(x) x >= 395 & x<= 405, PRES, 'UniformOutput', false);
SAF_T = cellfun(@(x) x >= 2.75 & x <= 6.15, TEMP, 'UniformOutput', false);
fun = isequal(SAF_P{:},SAF_T{:});
SAF_PRES = cellfun(@(x) fun,PRES, 'UniformOutput',false);
SAF_TEMP = cellfun(@(x) fun,TEMP, 'UniformOutput',false);
0 commentaires
Réponses (0)
Cette question est clôturée.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!