
6 Editing and Debugging M-Files
collatplot_new_test, describe d in “Create and Run a Configuration for
an M-file” on page 6-67.
For example, rename
collatzplot_new to collatzplot_new_largevalue,
and replace the default template expression with
m=200;
collatzplot_new(m)
To create another configuration, click the Add button .Rename
collatzplot_new to collatzplot_new_random and replace the default
template expression with
% Random value
m=int16(rand*50);
collatzplot_new(m)
clear all
3 Select a configuration in the listing to see and modify its expression, or to
renametheconfiguration. ClicktheexpandernexttoanM-filename(+
and - icon on Windows) to see or hide all the configurations associated
with that M-file.
4 To get a quick v iew of th e expression in a c onfiguration, position the po in ter
on the name of a configuration w ithout selecting it. In this example,
collatzplot_new_largevalue is selected and you can edit its expression
or name. The pointer is positioned on
collatzplot_new_test and you
can see the statements in it.
6-74
Komentáře k této Příručce