How can I add a column with labelining in a matrix
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sazid Hasan
el 27 de Ag. de 2021
Comentada: Sazid Hasan
el 27 de Ag. de 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/722589/image.jpeg)
0 comentarios
Respuesta aceptada
Chunru
el 27 de Ag. de 2021
% 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])
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!