Running model callbacks in model workspace

조회 수: 4(최근 30일)
Rey 2013년 5월 13일
Noticed that model callbacks such as PostLoadFcn, StartFcn etc run in base workspace, and they cannot access variables defined in model workspace unless they are evalin'ed in model workspace. Is there a way to change this behaviour and tell the model to evaluate the expressions of its model callbacks in the model workspace instead?


Ryan G
Ryan G 2013년 5월 13일
I don't believe you can change the default behavior here. How much extra work is using the evalin function? Are you calling a lot of functions in the callbacks?
  댓글 수: 5
Ryan G
Ryan G 2013년 5월 14일
Not sure about getvariable. But someone already asked about the bus object problem.

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

Community Treasure Hunt

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

Start Hunting!

Translated by