Not able to load MAT file [when a *.mdl file is kept opened]

1 view (last 30 days)
I have a customer supplied model which when opened doesn't let me load variables to Matlab base workspace using a MAT file. I checked the "model properties" of the MDL file for preload, postload or init Fcn. But there isn't any except for CloseFcn which has an entry rtwprivate ssgencode ModelCloseRequest FcnMdl [where FcnMdl is the name of the opened model]. The contents of the MAT file shows up in the workspace only after closing the model. But if I'm manually typing a variable x = 1; through the command window, it shows up in the workspace.
To explain, please read the following behaviour as an example:
Open the model
Go to Matlab command window and load ('D:\TrialBuild\refData.mat');
Now the workspace doesn't show any variables from the MAT file
Close the model
Now Matlab executes the previosly entered command in the command window for loading the MAT file and the variables in the MAT file shows up in workspace.
Has anybody experimented with something of this nature before?
Thanks in advance for your support.
  3 Comments
Jeevan Thomas
Jeevan Thomas on 26 Mar 2013
Thanks Friedrich for your reply. At my end, we have a problem that the model can't be shared as it contains proprietary information.
However, I shall try to contact Mathworks personnel for support.
Kaustubha Govind
Kaustubha Govind on 27 Mar 2013
Does this "delay" in execution only happen with the LOAD command, or with any MATLAB command? What if you just run something like a=1; - does the variable 'a' get created in the workspace?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!