structures to matrix for preparing for classification

조회 수: 1 (최근 30일)
Amir Naderi
Amir Naderi 2020년 1월 16일
댓글: Robert U 2020년 1월 17일
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 ♥
in fact , this structure is a glcm properties matrix and i want prepare it for classification

채택된 답변

Robert U
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
Amir Naderi
Amir Naderi 2020년 1월 16일
thank you so much Robert
Robert U
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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by