Installation guide

3 Running Functions Command Window and History
Running MATLAB Functions by Hyperlink
Use matlab: to run a specified statement w hen you click a hyperlink in the
Command Window. For example
disp('<a href="matlab:magic(4)">Generate magic square</a>')
displays
When you click the link Generate magic square,MATLABrunsmagic(4).
Alternatively, you can press Ctrl+Enter if the cursor is positioned in the link
text. You can use the
disp, error, fprintf,orwarning function with this
feature. Change the hyperlink color using Colors Preferences see “Colors
Preferences for De sktop Tools” on pag e 2- 70. For more information, including
examples, see the
matlabcolon (matlab:) reference page.
3-14