Accessing Table entries in MATLAB
56 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/370468/image.png)
0 件のコメント
回答 (2 件)
Ameer Hamza
2020 年 10 月 3 日
編集済み: Ameer Hamza
2020 年 10 月 3 日
There are several ways to access data in MATLAB table: https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html. Two most commonly used are
1) Using variable name,
T.Var2(2) % access 2nd element in column Var2
T.Var2(5) = T.Var3(4); % assign 4th entry in column 3 to 5th entry in column 2.
2) Using brace indexing.
T{2,2} % access 2nd element in 2nd column
T{5,2) = T.{4,3}; % assign 4th entry in column 3 to 5th entry in column 2.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!