How to introduce a array of text in matlab
Show older comments
Hi everyone , i have to ask , how i can introduce a array of string in matlab, like in java, for example string i=input('Give me your name'); what is the correct sintaxis , pliz i need your help
Thx
Accepted Answer
More Answers (1)
Fernand0
on 4 Oct 2011
0 votes
1 Comment
Walter Roberson
on 4 Oct 2011
No, that statement stores all of the characters.
Note that in MATLAB, there is no string data type, and that strings are considered arrays of characters. If you were to use s(1) you would not be asking for the first string in s, you would be asking for the first character in s.
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!