How I do to personalize axis?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How I do to personalize axis?

Darío-2
Hello! I have a script with discrete elements for a vector (no more than 12), is a row vector. I need only in the x-axis see the elements of the vector, but I see by default in two space or five space. For example if my vector is:
f=[ 1.00    1.41    2.00    2.83    4.00    5.66    8.00   11.31   16.00   22.63   32.00]
I need only in the x-axis this values reflected in the abscissa, the same in the y-axis.

I tried with the set command:
set(gca, 'xlim',[f(1,1), f(1,N)])
when f(1,1) represent the first element and f(1,N) would represent the last element that depend of N, but it'snt work.

Thanks a lot!