Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to return cell array columns that match criteria based on cellfun functions
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!