Consider:
textscan('5,6,7', '%s', 'Delimiter',','){1}{1:3}
ans = 55
ans = 66
ans = 77
Excellent! Now I want those three answers in different variables, or some structure I can do things with.
So I try:
X = textscan('55,66,77', '%s', 'Delimiter',','){1}{1:3}
X = 55
Only one value.
So I try:
X = [textscan('55,66,77', '%s', 'Delimiter',','){1}{1:3}] '
X = 556677
It's made it into one string.
So I try:
X Y Z = textscan('55,66,77', '%s', 'Delimiter',','){1}{1:3}
^
syntax error
There must be some way to handle multiple answers ... but how?