I have .mat file format that I want to modify to pass to another software. the file has 1x1 struct (name:data) with 4 fields. one of them is a 1x15 struct (name: event) with another 4 fields. I want to modify these fields. For example, the first one is 'time' which I tried to modify in different ways:
data.event.time=[1:15];
and I get the error:
"Scalar structure required for this assignment"
Also tried:
data.event = setfield(data.event,'time',1:15);
and got:
"Scalar structure required for this assignment.
Error in setfield (line 33)
s.(deblank(strField)) = varargin{end};"
I know that I don't understand the mechanism of structures on Matlab so my question might be kinda stupid but it is my second time to use it.