Skip to content

Instantly share code, notes, and snippets.

@summivox
Last active December 5, 2015 16:36
Show Gist options
  • Select an option

  • Save summivox/05f48a9bd8b53f03cdd3 to your computer and use it in GitHub Desktop.

Select an option

Save summivox/05f48a9bd8b53f03cdd3 to your computer and use it in GitHub Desktop.
Simulink: reload model workspace init script
function reload_workspace
% Call this function in `Init`, `PostLoadFcn`, and/or `PreSaveFcn` model
% callbacks to ensure that model workspace init script is auto-reloaded.
ws = get_param(bdroot, 'ModelWorkspace');
ws.reload;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment