structures to matrix for preparing for classification
1 回表示 (過去 30 日間)
古いコメントを表示
hi
i have a structure , and there are 550 structures in that structure which every structure has 26 matrices
how i can make a matrix which has 550 colums (for 550 structures) and its rows have matrices elements (26 matrices elements )?
thank you ♥
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262066/image.jpeg)
in fact , this structure is a glcm properties matrix and i want prepare
it for classification
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262067/image.jpeg)
0 件のコメント
採用された回答
Robert U
2020 年 1 月 16 日
Hi Amir Naderi,
if all data to concatenate are within the field 'property' and have same size of matrix you can apply struct2cell and cell2mat:
GLCM_matrix = cell2mat(struct2cell(GLCM_property(1).property));
Kind regards,
Robert
2 件のコメント
Robert U
2020 年 1 月 17 日
Thank you for your positive feedback. If you like my answer, please, vote for it by clicking on the "thumb up"-symbol.
In case it serves your needs and answers your question thoroughly, accept it.
Kind regards,
Robert
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!