Struct 2 table conversion error
Mostrar comentarios más antiguos
I am computing features from image and storing those features in struct. But I am receiving an error while converting struct into table.
-> Error using table.fromScalarStruct Field in a scalar structure must have the same number of rows.
-> Error in struct2table t = table.fromScalarStruct(s);
Respuestas (1)
Peter Perkins
el 21 de Mzo. de 2016
0 votos
The error message says it all: to convert a scalar struct to a table, the fields all have to be the same number of rows. However you are creating the struct needs to do that.
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!