Remove empty rows in Table

97 ビュー (過去 30 日間)
Seum Bin Rahman
Seum Bin Rahman 2019 年 10 月 12 日
回答済み: Walter Roberson 2019 年 10 月 12 日
MODEL=T{:,1};
PROBLEMS=T{:,2};
T=table(MODEL,PROBLEMS)
Here, when I see the output, I see some rows of "PROBLEM" colums which are empty. Like this;
MODELS PROBLEMS
_______________________ _________________________________________ _____ ________
'MH9' 'LCD_Broken'
'OLVIO L6' 'Network_No Network'
'WALPAD G3' ''
'PRIMO G7' ''
'PRIMO G7' ''
'PRIMO N2' 'Battery_drainfast'
I wish to delete these rows that are empty under PROBLEMS column. I need for straight Table type format, not Cell type format.

採用された回答

Walter Roberson
Walter Roberson 2019 年 10 月 12 日
newT = rmmissing(T);

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by