stringArrayLength(S)
Function Description
This function returns the length of string(s) in a single string or a
cellarray or a matrix.
AUTHOR: Sugato Ray | Created on: 12-AUG-2017 | ray.sugato[at]gmail.com
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLEASE ACKNOWLEDGE THE AUTHOR IF YOU USE THIS CODE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
INPUT:
S = a string array or a string matrix
OUTPUT:
L = a numeric array or a matrix, with the same size and shape as S.
EXAMPLE:
L = stringArrayLength(S);
Try This:
S = {'abc','2D','1','gavlvvglbv','guDVWF FIUWWFH ihf poj','gtwe66etr2rrhndm\['}
L = stringArrayLength(S)
Cita come
Sugato (2026). stringArrayLength(S) (https://it.mathworks.com/matlabcentral/fileexchange/64096-stringarraylength-s), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
