Click the hyperlink, Plot x,y again and it changes the current value of x back to 0:1:8.
The code that matlab: runs when you click the Plot x,y defines x in the base
workspace.
Provide Command Options
Use multiple matlab: statements in a file to present options, such as
disp('<a href = "matlab:state = 0">Disable feature</a>')
disp('<a href = "matlab:state = 1">Enable feature</a>')
The Command Window displays the links that follow. Depending on which link you click,
MATLAB sets state to 0 or 1.
Include Special Characters
MATLAB correctly interprets most text that includes special characters, such as a greater
than symbol (>). For example, the following statement includes a greater than symbol (>).
disp('<a href="matlab:str = ''Value > 0''">Positive</a>')
and generates the following hyperlink.
Some symbols might not be interpreted correctly and you might need to use the ASCII
value for the symbol. For example, an alternative way to run the previous statement is to
use ASCII 62 instead of the greater than symbol:
disp('<a href="matlab:str=[''Value '' char(62) '' 0'']">Positive</a>')
25 Programming Utilities