Development Environment | ![]() ![]() |
Changing Values of Elements in the Array Editor
In the Array Editor, click in the cell whose value you want to change. Type a new value. Press Enter or Return, or click in another cell and the change takes effect.
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 rows and columns from the end.
If you opened an existing MAT-file and made changes to it using the Array Editor, you'll have to save that MAT-file if you want the changes to be saved. For instructions, see Saving the Current Workspace.
![]() | Viewing and Editing Workspace Variables Using the Array Editor | Controlling the Display of Values in the Array Editor | ![]() |