Filter löschen
Filter löschen

How to plot graph?

3 Ansichten (letzte 30 Tage)
Rakesh Roshan
Rakesh Roshan am 9 Mai 2022
Kommentiert: Star Strider am 11 Mai 2022
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

Akzeptierte Antwort

Star Strider
Star Strider am 9 Mai 2022
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 Kommentare
Rakesh Roshan
Rakesh Roshan am 11 Mai 2022
Thank u
Star Strider
Star Strider am 11 Mai 2022
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by