Scientific format for command window display and specifying constants

10 ビュー (過去 30 日間)
Christopher Beaudoin
Christopher Beaudoin 2013 年 2 月 10 日
MATLAB has evolved alot over the years and I'm surprised that it does not yet (or at least I'm missing it) support scientific display formats in the command window and/or allow variables/constants to be specified in scientific units similarly to the way it gracefully handles engineering notion(e.g. 1.43e-2). Scientific units I'm referring to would be something like the following characters:
G: 1e9 M: 1e6 m: 1e-3 u: 1e-6 n: 1e-9 etc.
As command line scientific notation format example
>> a = 1e9
a =
1.00G
and as definition example:
>> a = 1.234u; %equivalent to 1.234e-6
Maybe someone has developed a workaround for this already or the functionality exists and I'm just not able to locate it somehow. In any case, I would be most appreciative if someone could point me to a solution to realize this functionality.

回答 (1 件)

Christopher Beaudoin
Christopher Beaudoin 2013 年 2 月 10 日
Sorry I'm tired. Scientific notation is handled sort-of by MATLAB. What I'm looking for is an implementation of the scientific prefix symbols. These prefixes are used in other higher level programming languages as well as modern test equipment. I imagine others would find such support useful in MATLAB as well.
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 2 月 10 日
I don't seem to recall any programming language that supports those? Other than FORTH, that is ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by