Desktop Tools and Development Environment Previous page   Next Page

Cut, Copy, Paste, and Delete in the Array Editor

You can cut or copy selected elements, rows, and columns in an array and paste them to another position in that 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 contiguous elements, rows, 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.

When you cut elements, the value of each element you cut becomes 0 if numeric or [] if a cell array. After cutting, select the elements whose value you want to replace with the cut elements and then choose Paste. If the shape of the elements you cut differs from the shape of the elements into which you are pasting, the Array Editor pastes all the elements, either by expanding the selection to be pasted into, or by expanding the array size to allow all the elements to be pasted. Pasting copied elements is the same as pasting cut elements, but the elements copied maintain their value rather than becoming 0.


Previous page  Changing Array Size, Content, and Format of Elements in the Array Editor Example Copying and Pasting Array Elements Next page

© 1994-2005 The MathWorks, Inc.