changing axis on a plot

How can I change the axis on a plot to change the x and y axis values.

1 Comment

Here is what Shani asked, so that it will still be here when she deletes this question:
How can I change the axis on a plot to change the x and y axis values.

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 19 Nov 2013
Edited: Azzi Abdelmalek on 19 Nov 2013
set(gca,'xtick',[1 2 3 4],'ytick',[8 10 12 21])

1 Comment

You will find answers depending on your questions. Post a new question and wait for answers

Sign in to comment.

Tags

Asked:

on 19 Nov 2013

Commented:

on 23 Nov 2013

Community Treasure Hunt

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

Start Hunting!