image thumbnail

num = eng2num( str )

version 1.0.0.0 (2.36 KB) by Roman Müller-Hainbach
Convert string with engineering-notation to number. Engineering notation comes from SPICE3-standard.

45 Downloads

Updated 03 Oct 2016

View License

Examples:
>> eng2num('4.7k')
ans = 4700

>> eng2num('10mA')
ans = 0.0100

>> eng2num('3u3F')
ans = 3.3000e-06

>> eng2num('0R01')
ans = 0.0100

Cite As

Roman Müller-Hainbach (2022). num = eng2num( str ) (https://www.mathworks.com/matlabcentral/fileexchange/59408-num-eng2num-str), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!