Faster alternative to builtin str2double

str2doubles converts character string to double number faster than the builtin str2double.

ダウンロード: 362

更新 2017/2/20


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.)


Felipe G. Nievinski (2023). Faster alternative to builtin str2double (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012b
Windows macOS Linux
Help Center および MATLAB AnswersString Parsing についてさらに検索
タグ タグを追加

ヒントを得たファイル: Fast String to Double Conversion

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート

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