how to make a condition: if grid minor;

3 次查看(过去 30 天)
Hi, how to make a condition, if grid minor; I am trying to do:
if grid==minor
a=1
else
a=0
end

采纳的回答

Walter Roberson
Walter Roberson 2011-4-7
a = 0 + ismember('on', get(gca,{'XMinorGrid','YMinorGrid','ZMinorGrid'});

更多回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by