stringArrayLength(S​)

Versión 2.0.0.0 (990 Bytes) por Sugato
This function returns the length of string(s) in a single string or a cellarray or a matrix.
21 Descargas
Actualizado 14 ago 2017

Ver licencia

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)

Citar como

Sugato (2026). stringArrayLength(S) (https://es.mathworks.com/matlabcentral/fileexchange/64096-stringarraylength-s), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Versión Publicado Notas de la versión
2.0.0.0

Updated the code for a better and faster alternative suggested by Jan Simmon.

1.0.0.0

Updated description.