Struct 2 table conversion error

20 Ansichten (letzte 30 Tage)
Ali Maqsood
Ali Maqsood am 21 Mär. 2016
Beantwortet: Peter Perkins am 21 Mär. 2016
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);

Antworten (1)

Peter Perkins
Peter Perkins am 21 Mär. 2016
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.

Kategorien

Mehr zu Data Type Conversion 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