Figure axis: How can I change '0 1 2 3' into '0.0 1.0 2.0 3.0' while keeping ' x 10^9' on the top of y axis ?

4 visualizzazioni (ultimi 30 giorni)
Check this figure:

Risposta accettata

Cris LaPierre
Cris LaPierre il 1 Mar 2021
Use the function ytickformat.
x=-2:2;
y=[0 0.75 1.5 2.25 3]*1e9;
plot(x,y)
ytickformat('%.1f')

Più risposte (0)

Categorie

Scopri di più su Animation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by