Figure の データヒントの有効数字が6桁より大きくする方法

18 views (last 30 days)
久之助 三宅
久之助 三宅 on 7 Apr 2022
figure の データヒントを表示する際に有効数字が6桁以下になってしまいます。
7桁以上表示する方法はあるのでしょうか。
また、画面上に選択した点のデータを表示する方法でデータヒント以外の方法はあるのでしょうか。

Accepted Answer

Hernia Baby
Hernia Baby on 7 Apr 2022
dataTipTextRow を調整すればできます
Fs = 256;
t = 0:1/Fs:1;
x = sin(2*pi*t);
p = plot(t,x);
datatip(p,0.4297,0.4276);
p.DataTipTemplate.DataTipRows(1).Format = '%.9f';
p.DataTipTemplate.DataTipRows(2).Format = '%.9f';
datatip(p,0.4297,0.4276);
  2 Comments
Hernia Baby
Hernia Baby on 7 Apr 2022
他の記入方法は text を参照ください
久之助 三宅
久之助 三宅 on 7 Apr 2022
上記のように
DataTipRowsのFormatを変更することで有効数字を変更することができました。
ありがとうございます。

Sign in to comment.

More Answers (0)

Categories

Find more on 言語の基礎 in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!