MATLAB: How to use find to cell cell indexing cell why does this not work ? find(grnd_truth_cell{:,1} == 6) I want to find all of grnd_truth_cell whose 1st column at every row == 6 but matlab tell me Error using == Too many input arguments. Best Answer Because as your command line shows,grnd_truth_cell{:,1}is a comma-separated list. Enclose it in the [] to make an array that find can operate over--find([grnd_truth_cell{:,1}]==6) Related SolutionsMATLAB: Extracting a field name from a cell array in a structure A = name1.name2.name3.name4;idx = find(cellfun(@isstruct,A));i2 = cellfun(@(x)any(strcmp(x,'name5')),cellfun(@fieldnames,A(idx),'un',0));idx = idx(i2);out = A(idx) MATLAB: Conversion to cell from double is not possible If you want the output to be a cell in the case 2, you have to do thisonset_time_second = cell(ratio_channels,4);onset_time_second (:, 1) = cellfun(@(x)(findchangepts(x, 'Statistic', 'mean')), beta_cell_second, 'UniformOutput', false)To help you understand, try this: A = num2cell(1:10); O = cell(1, 10); B = cellfun(@(x) x(1), A); %Returns double matrix C = cellfun(@(x) x(1), A, 'un', 0); %Returns cell array O(:) = B; %ERROR! Conversion to cell from double is not possible O(:) = C; %OKAY! Related QuestionDice similarity index between segmented image and ground truthHow can i add a main line and main column for the tableConverting matrix to columnCombine a cell array of cell arrays to a single cell array
Best Answer