MATLAB Answers

Zaza

how can i rescale ths axes of 2-D graph so the x-axis and the y-axis coordinates are: -4,-2,0,2,4?

Asked by Zaza
on 10 Dec 2012

thanks.

  2 Comments

I din't nderstand your question..

Zaza
on 10 Dec 2012

i want the scaling of x and y axes to be: -4,-2,0,2,4

Tags

Products

No products are associated with this question.

1 Answer

Answer by Muruganandham Subramanian on 10 Dec 2012

Are you expecting this:

figure;
xlim([-4 4])
ylim([-4 4])

  2 Comments

Zaza
on 10 Dec 2012

yes but without -3,-1,1,3 on the axes

then goto Edit -> Axes Properties -> then select X axis then click More Properties in Axis Rulers -> Xtick delete data(i.e. -3 -1 1 3). Repeat the same from instead of X axis, Use Y axis


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today