How to plot graph?

4 ビュー (過去 30 日間)
Rakesh Roshan
Rakesh Roshan 2022 年 5 月 9 日
コメント済み: Star Strider 2022 年 5 月 11 日
In y axis I want decimal places is it possible..
Y=[-0.0042 -0.0036] ## here also I m getting error
X=[8 9]
Plot(X, Y)
Y axis I should get in decimal places not in 3.6 e-03
Guidance needed version 2018a

採用された回答

Star Strider
Star Strider 2022 年 5 月 9 日
Try this —
Ax = gca;
Ax.YAxis.Exponent = 0;
I checked, and this will work in R2018a according to the R2018a NumericRuler Properties documentation.
Y=[-0.0042 -0.0036];
X=[8 9];
figure
plot(X, Y)
title('Original')
figure
plot(X, Y)
title('Using ‘Exponent’')
Ax = gca;
Ax.YAxis.Exponent = 0;
.
  6 件のコメント
Rakesh Roshan
Rakesh Roshan 2022 年 5 月 11 日
Thank u
Star Strider
Star Strider 2022 年 5 月 11 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by