Filter löschen
Filter löschen

Range of x and y

1 Ansicht (letzte 30 Tage)
Offroad Jeep
Offroad Jeep am 14 Okt. 2022
Kommentiert: John D'Errico am 14 Okt. 2022
Hi!
I have the values of x and y...
x ranges for 1.8 to -1.8
y ranges from 5 to -5
I want to set the value of x = 2 to -2 and for y 5.5 to -5.5
so that the graph gets plotted in between my set range .... please guide
Regards...
  1 Kommentar
John D'Errico
John D'Errico am 14 Okt. 2022
Are you really asking for the axes to be plotted in REVERSE order, thus with the ticks showing High to Low on both axes?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 14 Okt. 2022
Use the axis command after creating your plot.
axis([-2 2 -5.5 5.5])

Weitere Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by