Struct 2 table conversion error
조회 수: 20 (최근 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!