varlist

This option provides another way to cut down on the number of variables the user must choose from. It must be provided as a cell array of variable names.

This option also affects the default startup variable and makes it the first one in the list.

Example 4.8. Providing a Restricted List of Variable Names

In this example, we restrict rslice to just three variables.

>> rslice ( 'file', test_ncfile, 'varlist', { 'salt', 'temp', 'zeta' } );