The Method of Accessing Tabular Data in Matlab

The Method of Accessing Tabular Data in Matlab

In Matlab, a table is a commonly used data type. When working with tabular data, we often need to access the data in the table. This article will explain how to access tabular data in Matlab.

  1. create form

First, we need to create a table. You can use the readtable function to read data from a file to create a table, or you can create a table manually. Here we manually create a table:

% 创建表格
T = table;
T.Name = {
   
    
    'Alice'; 'Bob'; 'Charlie'; 'David'};
T.Age 

Guess you like

Origin blog.csdn.net/Jack_user/article/details/132127028