Desktop Tools and Development Environment Previous page   Next Page

Changing Array Size, Content, and Format of Elements in the Array Editor

To increase the size of an array, scroll to the desired location in the array and enter a value. The array will automatically expand to accommodate the new value. Empty cells are filled with zeros, if numeric, or empty arrays, if a cell array. To decrease the size of an array, select the rows or columns that you want to remove by clicking in the row or column header to select the entire row, right-clicking, and selecting Delete.

To change the value of an element in the Array Editor, click in that element and type a new value. Press Enter or Return, or click in another element to make the change take effect. You can specify where the cursor moves to after you press Enter--see Preferences for the Array Editor.

If you want to change the display format for the Array Editor, select the View menu and choose a format. To change the default format for future use, use the Preferences dialog. For more information, see Preferences for the Array Editor.

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.


Previous page  Navigating and Editing Shortcut Keys for the Array Editor Cut, Copy, Paste, and Delete in the Array Editor Next page

© 1994-2005 The MathWorks, Inc.