how to Enter same string in whole column?
Mostrar comentarios más antiguos
Hello, I have a Table some of its columns have variable value but for some i have to fix the column value with a string.
for example:
col1
"str1"
"str1"
"str1"
"str1"
Thank you.
Respuesta aceptada
Más respuestas (1)
T = table('Size', [5, 2], 'VariableTypes', {'string', 'double'});
T{:, 1} = "str"
1 comentario
Akashdeep Kaur
el 18 de Jul. de 2022
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!