Hello,
What I am trying to do is retrieve strings from a struct variable and store them in a vector. The struct variable is 16×1 with the first field holding the string data.
Here is what I tried, for example:
—————
for i = 1:16
stringVector(i) = structVar(i).stringField;
end
—————
Here is the error I am receiving:
"??? In an assignment A(:) = B, the number of elements in A and B must be the same."
Any thoughts?
Best Answer