Search and delete row from cell array

1 visualizzazione (ultimi 30 giorni)
andrew il 12 Giu 2013
I have a m x n cell array. I want to search the 6th column for empty cells and delete the entire row with the emtpy cell.

Risposte (2)

Hugo il 12 Giu 2013
Suppose that C is your cell array
Cnew=C; %Just for not losing original values
Does this work for you?

Youssef  Khmou
Youssef Khmou il 12 Giu 2013
try this example :
% gievn your cell C
% simulating your data
A(4,6)=0; % zero
A(7,6)=0; % zero
B=A(:,6); % the 6th column
% deleting the corresponding rows

Community Treasure Hunt

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

Start Hunting!

Translated by