Skip to content

Instantly share code, notes, and snippets.

@summivox
Created October 21, 2015 02:11
Show Gist options
  • Select an option

  • Save summivox/5c13cab72e819d99ea94 to your computer and use it in GitHub Desktop.

Select an option

Save summivox/5c13cab72e819d99ea94 to your computer and use it in GitHub Desktop.
Simulink Realtime tricks -- init script for setting up paths
currentFolder = fileparts(mfilename('fullpath'));
cd(currentFolder);
addpath(genpath([currentFolder '/src']));
addpath(genpath([currentFolder '/include']));
set_param(0, 'CacheFolder', [currentFolder '/build']);
set_param(0, 'CodeGenFolder', [currentFolder '/build']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment