필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
Jeevan Thomas
Jeevan Thomas 2013년 3월 25일
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
Jeevan Thomas
Jeevan Thomas 2013년 3월 26일
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 2013년 3월 27일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by