num2sci
版本 1.0.0.0 (2.6 KB) 作者:
Jason Kaeding
Works just like num2str except will print with formatting in SI prefix notation.
Works just like num2str except will print with formatting in SI prefix notation and (optional) units and precision.
Works with arrays of numbers and (potentially) cell arrays of strings for the units, returning a cell array of strings.
Examples:
str = num2sci(165.48e-3) returns str = '165.5 m'
str = num2sci(165.48e-3,'V') returns str = '165.5 mV'
str = num2sci(165.48e-3,'mV') returns str = '165.5 uV'
str = num2sci(165.48e-3,3,'V') returns str = '165 mV'
str = num2sci([1.5 2.5],{'V','mA'}) returns str = {'1.5 V' '2.5 mA'}
引用格式
Jason Kaeding (2026). num2sci (https://ww2.mathworks.cn/matlabcentral/fileexchange/26827-num2sci), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2009b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Characters and Strings 的更多信息
标签
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
