If I have a MATLAB structure output like
f1: [0 0 0 0 0 0 0 0 0 0]
f2: 'a'
How can I feed this output to different structure without manually doing
F = struct('f1', [0 0 0 0 0 0 0 0 0 0], 'f2', 'a');
In other words I need to feed the data in format
'field' : value
printed elsewhere in my live script notebook to a new structure. So far I am thinking about creating a binary file, but I thought there must be a better way.