Code covered by the BSD License  

Highlights from
num2eng

4.0

4.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 1.3 KB File ID: #13168

num2eng

by Federico Forte

 

29 Nov 2006 (Updated 29 Nov 2006)

Convert number to eng. notation string, with SI prefixes

| Watch this File

File Information
Description

Convert numbers to engineering notation strings, with prefixes from International System of Units (SI).
Examples:
  - num2eng(23e8) produces the string '2.3G'
  - num2eng(0.0000004) produces the string '400n'

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
30 Nov 2006 Antoni J. CanĂ³s

Good job. Maybe some checking instructions are needed. It would be nice if you also submitted the "opposite" function eng2num!.

18 Nov 2010 Lars Olav Vestland

A similar funtion can found at :
http://www.mathworks.com/matlabcentral/fileexchange/20950-num2str-with-metric-prefix
which have spacing between the SI-prefix and number, (as it should have).

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
strings Federico Forte 22 Oct 2008 08:50:40
engineering notation Federico Forte 22 Oct 2008 08:50:40
international system Federico Forte 22 Oct 2008 08:50:40
prefixes Federico Forte 22 Oct 2008 08:50:40
axes Lars Olav Vestland 15 May 2009 11:18:37
plot Lars Olav Vestland 15 May 2009 11:18:44

Contact us at files@mathworks.com