Remove null rows from a structure before converting to table
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am using a struct2table on a structure which has a few null rows as shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1319210/image.png)
When I try to use struct2table on this it gives me
3×2 table
A B
____________ ____________
{0×0 double} {0×0 double}
{0×0 double} {0×0 double}
{[ 1]} {[ 2]}
Is there a way to only convert the rows with the non null values, that would remove the braces when I convert it? Thanks a lot!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type 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!