To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I want to manually control the x step size (xticks).
there is a edit field which determines the x step size:
this is what i have now
if ~isnan(xstep1) xbounds = xlim; set(gca,'XTick',xbounds(1):xstep1:xbounds(2)); end
hope it helps someone
No products are associated with this question.
You're just trying to change the default XTick position or the XTickLabel? These two is different properties.
My suggestion is first plot a simple figure then using the edit tool in the figure to change whatever you want, and you can get the m-code after the changes. At this point you will know the exact code that meets your need. Here's the steps you can follow:
2. click Edit->Axes Properties...on the Figure menu, and click Ticks...button on the opened property panel.
3. Change what you want, then click File->Generate Code on the figure menu.