MATLAB: Grid on in gui matlab gui HI, I have six axes in my gui, and I want that everyone of them will be with grid on. simple command grid on, apply only on one of the plots randomly at each run. how to resolve this? thanks, Best Answer axes_handle = axes(n)plot(x, y)grid(axes_handle, 'on') Related SolutionsMATLAB: Grid I may be oversimplifying it, but perhaps issue ahold offat the end of the code and see if this gives you behavior you desire.grid minor is a toggle, so that if you issue it and then have a hold on, then when it is issued again, it will toggle off. MATLAB: Plot grid Are you sure you want to do that? You won't be able to see the xticklabels even if you make the font really small.Here is an example with just 0:49 plot(randn(50,1)) set(gca,'xtick',0:49); set(gca,'fontsize',6); grid on;If you don't want labels plot(randn(100,1)) set(gca,'xtick',0:99); set(gca,'xticklabel',[]); grid on; Related QuestionMake gridUsing uicontrol in a figure
Best Answer