Struct 2 table conversion error
14 ビュー (過去 30 日間)
古いコメントを表示
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);
0 件のコメント
回答 (1 件)
Peter Perkins
2016 年 3 月 21 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!