Get separate values from a mat file

1 次查看(过去 30 天)
Brince Babu
Brince Babu 2022-5-29
回答: KSSV 2022-5-29
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'

回答(1 个)

KSSV
KSSV 2022-5-29
load Solution.mat ;
c = struct2cell(conf_solution);
iwant = cell2mat(squeeze(c(2,:,:)));

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by