23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12 <strong>Programming</strong> Tips<br />

Making Nontoolbox File Changes Visible to <strong>MATLAB</strong><br />

For M-files outside of the toolbox directories, <strong>MATLAB</strong> sees the changes made<br />

to these files by comparing timestamps and reloads any file that has changed<br />

thenexttimeyouexecute the corresponding function.<br />

If <strong>MATLAB</strong> does not see the changes you make to one of these files, try<br />

clearing the old copy of the function from memory using clear functionname.<br />

You can verify that <strong>MATLAB</strong> has cleared the function using inmem to list all<br />

functions currently loaded into memory.<br />

Change Notification on Windows<br />

If <strong>MATLAB</strong>, running on Windows, is unable to see new files or changes you<br />

have made to an existing file, the problem may be related to operating system<br />

change notification handles.<br />

Type the following for more information:<br />

help changeNotification<br />

help changeNotificationAdvanced<br />

12-38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!