Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab 如何在条形图中打开垂直网格线?_Matlab_Plot - Fatal编程技术网

Matlab 如何在条形图中打开垂直网格线?

Matlab 如何在条形图中打开垂直网格线?,matlab,plot,Matlab,Plot,如何在条形图中打开垂直网格线 grid on grid minor 不要这样做。要使用当前轴的“XGrid”和“YGrid”属性: clc clear y = [75.995,91.972,105.711,123.203,131.669,... 150.697,179.323,203.212,226.505,249.633,281.422]; figure; bar(y); set(gca,'XGrid','on') set(gca,'YGrid','off') 因此: 要使

如何在条形图中打开垂直网格线

grid on
grid minor

不要这样做。

要使用当前轴的“XGrid”和“YGrid”属性:

clc
clear

y = [75.995,91.972,105.711,123.203,131.669,...
     150.697,179.323,203.212,226.505,249.633,281.422];
figure;
bar(y);


set(gca,'XGrid','on')
set(gca,'YGrid','off')
因此:


要使用当前轴的“XGrid”和“YGrid”属性:

clc
clear

y = [75.995,91.972,105.711,123.203,131.669,...
     150.697,179.323,203.212,226.505,249.633,281.422];
figure;
bar(y);


set(gca,'XGrid','on')
set(gca,'YGrid','off')
因此:


@embert我刚看到这篇文章,想知道答案是否解决了你的问题?@embert我刚看到这篇文章,想知道答案是否解决了你的问题?