Remove empty rows in Table

97 Ansichten (letzte 30 Tage)
Seum Bin Rahman
Seum Bin Rahman am 12 Okt. 2019
Beantwortet: Walter Roberson am 12 Okt. 2019
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Okt. 2019
newT = rmmissing(T);

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Math finden Sie in Help 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