Removing empty rows in the table in the array

1 回表示 (過去 30 日間)
Karel Starý
Karel Starý 2021 年 5 月 17 日
回答済み: Karel Starý 2021 年 5 月 17 日
Hello,
I am trying to get rid off all the empty rows in the table fter I imported it in the cell array. My source array name is src_files and i this particular case I am trying to use 3rd one on the collum with a variable "Time".
I have tried two ways I found here and non of them are working.
Error I am having is : "Check for incorrect argument data type or missing argument in call to function 'isnan'."
src_files{3} = src_files{3}(:,~all(isnan(src_files{3}.Time)));
src_files{3}( all( isnan( src_files{3}.Time ), 2 ), : ) = [];
Thanks !

採用された回答

Karel Starý
Karel Starý 2021 年 5 月 17 日
In the end I used "rmmissing" function witch is less buggy than isnan....
src_files{3} = rmmissing(src_files{3},'DataVariables',{'Longitude','Latitude'})

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by