How can I add a column with labelining in a matrix
조회 수: 2 (최근 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!