Error: In an assignment A(:) = B, the number of elements in A and B must be the same.
Ältere Kommentare anzeigen
Problem: TrajSimilarity is a struct of k elements, I want to put all the value of TrajSimilarity(1,k).aLongestString in a vector/array A. I try using this code but it generate error, can you help me to solve the problem?
Code:
for k=1:14
A(k)=TrajSimilarity(1,k).aLongestString;
end
Error:
In an assignment A(:) = B, the number of elements in A and B must
be the same
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!