how to use string array in function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hello,
I would like to know how to input string arry into vector and matrix using function?
Thanks.
5 Kommentare
Antworten (1)
Prathamesh Kulkarni
am 12 Jul. 2022
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 Kommentare
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!