How can I add a column with labelining in a matrix
2 次查看(过去 30 天)
显示 更早的评论

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!