How can I add a column with labelining in a matrix
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/722589/image.jpeg)
0 件のコメント
採用された回答
Chunru
2021 年 8 月 27 日
% Create a table with some data
a = (1:10)'; b=rand(10, 1); c=randi([1,100], 10, 1);
T = table(a, b, c)
% Now add the label
T.label = repmat("Before", 10, 1);
T = T(:, [end 1:end-1])
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!