Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
This function capitalizes each word in a string, or in a cell array of strings, excepting a user-definable set of short words. The default non-capitalized words are 'a', 'an', 'and', 'or', 'the', and 'in'.
Example:
>> C={'a walk in the park' 'two birds with one stone' 'pay the piper'}';
>> capitalize(C)
ans =
'A Walk in the Park'
'Two Birds With One Stone'
'Pay the Piper'
>> capitalize(C,{'with','THE'})
ans =
'A Walk In the Park'
'Two Birds with One Stone'
'Pay the Piper'
>>
Citar como
Brandon Kuczenski (2026). Capitalize strings using titlecase (https://es.mathworks.com/matlabcentral/fileexchange/43399-capitalize-strings-using-titlecase), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.1.0.0 (1,36 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
