After creating vectors or matrics in Matlab®, you can edit them in Variable Editor which is like Excel tables. It is very easy to edit the matrices and vectors in Matlab® Variable Editor, and in this article, we will show how to edit matrices and vectors in Variable Editor in Matlab® with a very basic example below.
To open the Variable Editor for a variable in Matlab®, for example, you created a vector as shown by the blue arrow above in Command Window. The vector will appear in Workspace as shown by the green arrow above. If you double click on that variable, the Variable Editor for that matrix will open as shown by the red arrow.
As you see, Variable Editor in Matlab® is like the Excel tables. You can edit your variable from this table in a very basic way.
You can edit your variable as above. If you right-click on a specific cell on your table in Variable Editor, there will a little table appear as shown in the red box. You can do row and column operations such as adding columns or deleting rows or columns etc.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
You can take the transpose of the variable if you click on the ‘Transpose Variable’ option on that little menu.
Select the whole variable by dragging your mouse.
Also, you can select the all table value of your variable as an above example by clicking and dragging your mouse like in Excel. If you right-click after that, the same menu will appear as shown by the red arrow above in Matlab®. You can Cut or Copy this information, also if you have cut or copied information, you can Paste it.
So the use of ‘Matlab® Variable Editor’ is very easy like Excel. Leave your comments and questions about ‘Matlab® Variable Editor’ below!
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®
Your precious feedbacks are very important to us.