Reputation: 87
I have some data which I am plotting using the surf command. Its pretty simple,
data=xlsread('./sample_55_data.xlsx');
surf(data,'EdgeColor','none');
However, it produces a plot which is offset in some dimensions from zero. I can't figure out how to remove this.
Upvotes: 2
Views: 283
Reputation: 1572
You can set properties of axes using 'gca' handle. In Matlab 2013
set(gca,'XLim',[0,Xmax];
or in 2014b (http://nl.mathworks.com/help/matlab/ref/gca.html)
gca.Xlim = [0, Xmax];
Upvotes: 3