如何改变MATLAB坐标轴间隔?x=[20,22,24,26,28,30,32,34,36,38,40,42,44];y=[62.9,68.8,71.2,82.5,84.1,88.6,88.4,88.4,88.0,88.0,88.0,88.0,88.0];plot(x,y,'-r*');xlabel('Number of Gabor features');ylabel('classification recognition rate (%)');legend(
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 13:34:33
如何改变MATLAB坐标轴间隔?x=[20,22,24,26,28,30,32,34,36,38,40,42,44];y=[62.9,68.8,71.2,82.5,84.1,88.6,88.4,88.4,88.0,88.0,88.0,88.0,88.0];plot(x,y,'-r*');xlabel('Number of Gabor features');ylabel('classification recognition rate (%)');legend(
如何改变MATLAB坐标轴间隔?
x=[20,22,24,26,28,30,32,34,36,38,40,42,44];
y=[62.9,68.8,71.2,82.5,84.1,88.6,88.4,88.4,88.0,88.0,88.0,88.0,88.0];
plot(x,y,'-r*');
xlabel('Number of Gabor features');
ylabel('classification recognition rate (%)');
legend('pain vs.non-pain');
xlim([20,45]);
ylim([60,90]);
X轴的间隔为5,如何改为2呢?
如何改变MATLAB坐标轴间隔?x=[20,22,24,26,28,30,32,34,36,38,40,42,44];y=[62.9,68.8,71.2,82.5,84.1,88.6,88.4,88.4,88.0,88.0,88.0,88.0,88.0];plot(x,y,'-r*');xlabel('Number of Gabor features');ylabel('classification recognition rate (%)');legend(
set(gca,'XTick',[20:5:45])
set (gca,'xtick',[20:2:45]);