how to use string array in function?
5 ビュー (過去 30 日間)
古いコメントを表示
hello,
I would like to know how to input string arry into vector and matrix using function?
Thanks.
5 件のコメント
回答 (1 件)
Prathamesh Kulkarni
2022 年 7 月 12 日
Hi Idan,
You can convert string array of numbers to vector by using str2double function.
A = ["34", "344", "23"]
A =
1×3 string array
"34" "344" "23"
>> B = str2double(A)
B =
34 344 23
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!