hex2dec 5x slower than sscanf
3 views (last 30 days)
Show older comments
Using hex2dec(str) and reading 4000 5-character hex values from a file takes about 1 sec. Using sscanf(str,'%x') takes about 200 ms. Seems like hex2dec could be improved!
2 Comments
Answers (0)
See Also
Categories
Find more on Digital Input and Output in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!