Code covered by the BSD License  

Highlights from
sci2num

5.0

5.0 | 2 ratings Rate this file 4 Downloads (last 30 days) File Size: 1.51 KB File ID: #26828

sci2num

by Jason Kaeding

 

02 Mar 2010

Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci.

| Watch this File

File Information
Description

Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Works with cell arrays of strings also.

  Examples:
 
  num = sci2num('14.5 m') returns num = 0.0145
  num = sci2num('14.5') returns num = 14.5
  num = sci2num({'14.5m','85.2'}) returns num = [0.0145 85.2]

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
20 Jun 2011 Holger Hiebel

I love it and use it very often.

10 Aug 2011 Adriano  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
si Jason Kaeding 03 Mar 2010 10:37:19
notation Jason Kaeding 03 Mar 2010 10:37:19
prefix Jason Kaeding 03 Mar 2010 10:37:19
units Jason Kaeding 03 Mar 2010 10:37:19
num2sci Jason Kaeding 03 Mar 2010 10:37:19

Contact us at files@mathworks.com