import mat file

  • Follow


Hi,

I've been trying to load matfiles in a for loop in embedded matlab function, but couldt. I found a post here mentioning to use the callback from model properties, but it seems the loaded data can only be used inside simulink not the embedded matlab function. If Im right, is there any way to load mat file into my function?or should I save the data in another matlab function and call it from embedded matlab function?

will be happy to hear any solution
0
Reply LS 1/19/2011 8:03:30 AM

LS <user@compgroups.net/> wrote in message <prGdnUgQpv5IB6vQnZ2dnUVZ_smdnZ2d@giganews.com>...
> Hi,
> 
> I've been trying to load matfiles in a for loop in embedded matlab function, but couldt. I found a post here mentioning to use the callback from model properties, but it seems the loaded data can only be used inside simulink not the embedded matlab function. If Im right, is there any way to load mat file into my function?or should I save the data in another matlab function and call it from embedded matlab function?
> 
> will be happy to hear any solution
> 
Hi
You can use Model properties -->Callbacks--> initFcn to load your mat file data. You can use your mat file data in Embedded matlab function.

HTH,
Saif
0
Reply user 1/19/2011 10:31:04 AM


1 Replies
463 Views

(page loaded in 0.048 seconds)

Similiar Articles:













7/22/2012 9:18:39 AM


Reply: