creating struct array for libstruct to callib my c code
Hi,
I have b1 struct that has field "UserInput" and size up to 20 and "UserInput" has 2 fields "aaa", and "bbb". For example you can call b1.UserInput(20).a = double(10);
I tried this code.
struct1 = libstruct(‘struct1_T’);
inputStruct = libstruct(‘UserInput’, repmat( {struct1}, 1, 20));
so how do I create struct array in libstruct ?
I use matlab 2017bHi,
I have b1 struct that has field "UserInput" and size up to 20 and "UserInput" has 2 fields "aaa", and "bbb". For example you can call b1.UserInput(20).a = double(10);
I tried this code.
struct1 = libstruct(‘struct1_T’);
inputStruct = libstruct(‘UserInput’, repmat( {struct1}, 1, 20));
so how do I create struct array in libstruct ?
I use matlab 2017b Hi,
I have b1 struct that has field "UserInput" and size up to 20 and "UserInput" has 2 fields "aaa", and "bbb". For example you can call b1.UserInput(20).a = double(10);
I tried this code.
struct1 = libstruct(‘struct1_T’);
inputStruct = libstruct(‘UserInput’, repmat( {struct1}, 1, 20));
so how do I create struct array in libstruct ?
I use matlab 2017b libstruct, struct, structures, array, struct array, code generation MATLAB Answers — New Questions