
5 Workspace, Search Path, and File Operations
the Preferences dialog. For more information, see “Prefere nces for the Array
Editor” on page 5-22.
If you opened an existing MAT-file and made changes to it using the
Array Editor, save that MAT-file if you want the changes to be saved. For
instructions, see “Saving the Current Workspace” on page 5-5.
Cut, Copy, Paste, and Clear Contents in the Array
Editor
Yo u can cut o r copy selected elements, rows, and columns in an array and
paste them to another position in th at or another open array. To select a
column or row, click in the row or column heading (the element that shows
the row or column number). Shift+click to choose contiguo us elements, row s,
or columns in the array, or Ctrl+A to select all elements. For the cut, copy,
and paste operations, use the Edit menu, the context menu, or the toolbar
buttons. You can undo the last operation you performed in the Array Edito r.
When you cut elements, the value of each element you cut becomes
0 if
numeric or
[] if a cell array. After cutting, select the elemen ts whose value
you want to replace with the cut elements and then choose Paste.Ifthe
shape of the elements you cut differs from the shape of the elements into
which you are p asting, the Array Editor pastes all the elements, either by
expanding the selection to be p asted into, or by expanding the array size to
allow all the elements to be p asted. Pasting copied e lements is the same as
pasting cut elements, but the elements copied maintain their value rather
than becoming
0.
Select eleme nts, rows, or co lumns and then select Edit > Clear Contents.
The value of the selected elements becomes
0. It differs from a performing
a Cut because the data from the selectedelementsdoesnotmovetothe
clipboard; any clipboard content is unaffected by Clear Contents.
5-18
Commentaires sur ces manuels