Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load and Save in Embedded Matlab Function

Status
Not open for further replies.

agaz1985

Computer
Joined
Jun 21, 2007
Messages
3
Location
IT
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.
 
Hi,

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top