Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

change axis of a plot

Asked by joo

joo (view profile)

on 17 Nov 2012
Accepted Answer by Daniel

Daniel (view profile)

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

0 Comments

joo

joo (view profile)

Tags

Products

No products are associated with this question.

2 Answers

Answer by Daniel

Daniel (view profile)

on 23 Nov 2012
Accepted answer

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

0 Comments

Daniel

Daniel (view profile)

Answer by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 17 Nov 2012
Edited by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 17 Nov 2012
 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 Comments

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 17 Nov 2012

I don't understand what this is used for?

joo

joo (view profile)

on 17 Nov 2012

to plot correctly a curve the axis should be like that...

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 17 Nov 2012

You can add two line manually with figure editor

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

Contact us