Development Environment |
Changing Array Size and Content of Elements in the Array Editor
To change the dimensions of an array, type the new values for the rows and columns in the Size fields. If you increase the size, the new rows and columns are added to the end and are filled with zeros. If you decrease the size, you will lose data--MATLAB removes the rows and columns from the end. Some data types do not allow you to change the dimension; for these variables, the Size field is not editable.
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 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.
Navigating in the Array Editor | Cut, Copy, Paste, and Delete in the Array Editor |