sci2num

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

您现在正在关注此提交

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]

引用格式

Jason Kaeding (2026). sci2num (https://ww2.mathworks.cn/matlabcentral/fileexchange/26828-sci2num), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0