Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to return cell array columns that match criteria based on cellfun functions

1 回表示 (過去 30 日間)
Rhiannon Jones
Rhiannon Jones 2019 年 5 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by