Get separate values from a mat file
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a mat file of 1142x12 size where each cell of it is a strcut having fields Joint Names and Joint Position value.I have to separate this into two files having the Joint Positions values only of 1142*12 size and Joint Names into another 1*12 file.
I have attatched the files what I need is to convert the 'Solution.mat' file in the format of 'solution_type_desired.mat'
댓글 수: 0
답변 (1개)
KSSV
2022년 5월 29일
load Solution.mat ;
c = struct2cell(conf_solution);
iwant = cell2mat(squeeze(c(2,:,:)));
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!