how to Enter same string in whole column?
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
T = table('Size', [5, 2], 'VariableTypes', {'string', 'double'});
T{:, 1} = "str"
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!