Why do I need to press “Reinitialize from Source” multiple times before the variables in the workspace are actually updated?

1 view (last 30 days)
When I have my Model Workspace Data Source set to Matlab File or Matlab Code, I am finding that I need to press “Reinitialize from Source” multiple times before the variables in the workspace are actually updated to reflect the changes I made in the initialization script. Often I have to open the Variable Editor and check that the elements of the struct have actually changed. Two questions:
  1. Why am I needing to press Reinitialize multiple times (currently running R2016a)?
  2. The work flow for examining a struct field using the Variable Editor is highly inefficient (many button clicks, and then the editor closes as soon as you click away). Is there a way to enable a tree view of struct contents in the Workspace view in Model Explorer without having to open the Variable Editor every time you want to look inside the struct?
Thanks

Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!