Hi all,
I have a cell array called "stations1". I want to remove any row for which column 9 is empty ([]). Can anyone one help me with that?

 Akzeptierte Antwort

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 27 Jan. 2023

1 Stimme

Here is how you can do it:
load('stations1.mat');
[Rs, Cs] = find(cellfun(@isempty, stations1));
stations1(Rs,:)=[];

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by