Not able to load MAT file [when a *.mdl file is kept opened]
1 view (last 30 days)
Show older comments
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
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?
Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!