Dear reader,
I would like to be able to use structures inside classdef and I do now know how to do it. Here is a toy example of what I would like:
classdef dummy1 properties S.a = 0; S.b = linspace(1,2,1e1); S.c = [1 2 3]; P.d = 0; P.e = 1; end methods %constructor
function obj = dummy1() obj; end end end
Notice the two structures S and P defined inside this class.
However I get an error when running:
dummy1()
Any help is highly appreciated. Once I get through with this, the next challenge would be to have this class ready for code generation.
Thank you
Best Answer