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

 采纳的回答

Daniel Shub
Daniel Shub 2012-11-23

0 个投票

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

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2012-11-17
编辑:Azzi Abdelmalek 2012-11-17
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 个评论

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

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by