I have a multi-level structure ("a") defined as follows,
a.test1 = 5;
a.test2 = [2 4 6];
a.b.test3 = 4;
I want to edit/add data to a.b.test3 within a matlab function block in simulink defined as follows,
y = a;
y.b.test3 = [a.b.test3 t];
where, a is set as a parameter in model explorer, taken from the base workspace. t is scalar input.
Further, i do not want to use coder.extrinsic() as i need this for a real-time application. I found that i was not able to edit or add data to a structure within a matlab function block in simulink.