change axis of a plot

3 ビュー (過去 30 日間)
joo
joo 2012 年 11 月 17 日
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 日
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 件のコメント
joo
joo 2012 年 11 月 17 日
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

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-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