經安全檢測,此網站為安全網站,請放心前往原始網址!

String Length - MATLAB Answers - MATLAB Central

Your input variable is a cell array. Each string is an element in that cell array and so length reports 2, because you have 2 elements. If you do length(string(1)) then you still try to access the cell element itself rather than its content. However, if y

www.mathworks.com

網址安全性掃描由 google 提供