Faster alternative to builtin str2double

str2doubles converts character string to double number faster than the builtin str2double.
378 Descargas
Actualizado 20 feb 2017

Ver licencia

This is a patched version of @Quant Guy's str2doubleq.cpp (submission #28893, last time updated five years ago). It includes a fix for memory leak indicated by @Jonathan and @Matthew Gunn in the comments. It also offers str2doubles.m, an interpreted language alternative to the mex (no compilation necessary) as given by @Jan Simon. Both .cpp and .m are slightly improved to deal with missing data. (Notice the mex version always returns complex-valued output, which doubles the storage; use wrapper str2doubleq2.m to discard all-zero imaginary component.)

Citar como

Felipe G. Nievinski (2026). Faster alternative to builtin str2double (https://es.mathworks.com/matlabcentral/fileexchange/61652-faster-alternative-to-builtin-str2double), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre String Parsing en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas
Agradecimientos

Inspirado por: Fast String to Double Conversion

Versión Publicado Notas de la versión
1.0.0.0

- added support for multidimensional cell arrays in str2doubles.
- offered new wrapper for str2doubleq for non-complex data.