Load and Save in Embedded Matlab Function
Load and Save in Embedded Matlab Function
(OP)
I need to invoke Matlab functions "load" and "save" in an embedded Matlab function, I try this code :
eml.extrinsic('load');
eml.extrinsic('save');
load('initial.mat','pos');
.
..
...code...
..
.
save('initial.mat','pos');
but it doesn't work ! Any suggest ? Thanks.
eml.extrinsic('load');
eml.extrinsic('save');
load('initial.mat','pos');
.
..
...code...
..
.
save('initial.mat','pos');
but it doesn't work ! Any suggest ? Thanks.





RE: Load and Save in Embedded Matlab Function
I am not sure about what you are trying to do. But ,as I figured it out, you embedded this matlab code in a simulink media and trying to load or save some data. You can try the options of "from workspace" and "to workspace" available in simulink. You can connect those to the ports of embedded code b