How do I jump to a specific element in a matrix in the Variable Editor in MATLAB?

I have a large matrix of data. I would like to be able to view the contents of a particular area of the data without having to manually navigate to it in the MATLAB Variable Editor.

 Accepted Answer

Below are the different ways to access a particular section of a matrix in MATLAB:
MATLAB Online
  1. Double click on your matrix in the Workspace pane to open up your variable in the MATLAB Variable Editor.
  2. The Variable tab will open up for you automatically in the MATLAB toolstrip located at the top of your MATLAB instance. Within the "Navigate" section, click on the "Go To" button
  3. A "Go To" menu will pop up. If you want to view the element at Row 50 Column 2, you insert those numbers as follows in the corresponding fields and press "OK."             
MATLAB Desktop
  1. Double click on your matrix in the Workspace pane to open up your variable in the MATLAB Variable Editor.
  2. The Variable tab will open up for you automatically in the MATLAB toolstrip located at the top of your MATLAB instance. Under the "Selection" section, you will see "Rows" and "Columns" fields.   
  3. Ensure the Variable Editor is selected. You can do this by clicking anywhere within the Variable Editor.
  4. Click on the "Rows" field and type in the row of the element you want to view. Then click on the "Columns" field and type in the column of the element you want to view. Finally, click the enter key to successfully register the element you selected.
  5. Click on the enter key a second time OR the down arrow key to jump to the subsequent element in the Variable Editor.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!