Plotting mantissa against a vector

1 回表示 (過去 30 日間)
Omar
Omar 2020 年 2 月 18 日
編集済み: Omar 2020 年 2 月 18 日
Given a vector xx=rand(16,1) and to plot its mantissa against xx I simply use
plot(floor(log10(xx)), xx)
This is apparently easy, however it seems not working for vectors containing elements in floating point format, e.g. 4.34e-4 .
Is this the right way to do it or something is wrong? What is good way to represent the the mantissa of these componet of the vector elements against itself?
  1 件のコメント
darova
darova 2020 年 2 月 18 日
>> floor( log10(4.34e-4) )
ans =
-4

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by