Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mat labで数値の仮数と指数を見つけたいです。それらを計算する関数または方法はありますか?
たとえば、数値が 0.0005 の場合、この関数は仮数部に 5 を返し、指数部に -4 を返します。
ありがとうございました
指数は次のように指定できます。
x= 0.0005; exponent=floor(log10(x));
および係数 (一般的な定義と一致しないため、仮数と呼ぶことは拒否します)。
coeff=x/10^exponent;