【Matlab开启网格】开启Matlab画图网格

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaoxiao133/article/details/88952147

示例代码和图片如下:

h = figure;
load diff_ppp.mat
plot(diff_ppp)
gca_h = gca;
set(gca_h, 'YGrid', 'on')
set(gca_h, 'YMinorGrid', 'on')

在这里插入图片描述

h = figure;
load diff_ppp.mat
plot(diff_ppp)
gca_h = gca;
set(gca_h, 'YTick', [-1:0.2:1])
set(gca_h, 'YGrid', 'on')
set(gca_h, 'YMinorGrid', 'on')

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaoxiao133/article/details/88952147
今日推荐