how to Enter same string in whole column?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
T = table('Size', [5, 2], 'VariableTypes', {'string', 'double'});
T{:, 1} = "str"
1 commentaire
Akashdeep Kaur
le 18 Juil 2022
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!