change axis of a plot

does anyone know how to do broken axis* ( 0--//---- ) and also how to obligate matlab automatically to write final x value and final y value in the plots i obtain?
*this plot is simply obtained with xy data obtained in laboratory.
thank you very much

 Akzeptierte Antwort

Daniel Shub
Daniel Shub am 23 Nov. 2012

0 Stimmen

There are a number of good reasons to avoid these breaks, and often there are good alternatives.

Weitere Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 17 Nov. 2012
Bearbeitet: Azzi Abdelmalek am 17 Nov. 2012

0 Stimmen

set(gca,'xtick',linspace(min(x),max(x),7),'ytick',linspace(min(y),max(y),7))
what do you mean by : how to do broken axis

6 Kommentare

joo
joo am 17 Nov. 2012
sorry but i didn't understand. this code does what specifically? thank you.
Azzi Abdelmalek
Azzi Abdelmalek am 17 Nov. 2012
try the code, you will understand
joo
joo am 17 Nov. 2012
what you see inside the circle in my picture or in the new example. thank you.
Azzi Abdelmalek
Azzi Abdelmalek am 17 Nov. 2012
I don't understand what this is used for?
joo
joo am 17 Nov. 2012
to plot correctly a curve the axis should be like that...
Azzi Abdelmalek
Azzi Abdelmalek am 17 Nov. 2012
Bearbeitet: Azzi Abdelmalek am 23 Nov. 2012
You can add two line manually with figure editor

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by