num2sci

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://jp.mathworks.com/matlabcentral/fileexchange/26827-num2sci), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Scientific Prefix to Number, Number to Scientific Prefix

カテゴリ

Help Center および MATLAB AnswersCharacters and Strings についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0