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

16 visualizaciones (últimos 30 días)
久之助 三宅
久之助 三宅 el 7 de Abr. de 2022
Comentada: 久之助 三宅 el 7 de Abr. de 2022
figure の データヒントを表示する際に有効数字が6桁以下になってしまいます。
7桁以上表示する方法はあるのでしょうか。
また、画面上に選択した点のデータを表示する方法でデータヒント以外の方法はあるのでしょうか。

Respuesta aceptada

Hernia Baby
Hernia Baby el 7 de Abr. de 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 comentarios
Hernia Baby
Hernia Baby el 7 de Abr. de 2022
他の記入方法は text を参照ください
久之助 三宅
久之助 三宅 el 7 de Abr. de 2022
上記のように
DataTipRowsのFormatを変更することで有効数字を変更することができました。
ありがとうございます。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 言語の基礎 en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!