how to make a condition: if grid minor;
3 views (last 30 days)
Show older comments
Hi, how to make a condition, if grid minor; I am trying to do:
if grid==minor
a=1
else
a=0
end
0 Comments
Accepted Answer
Walter Roberson
on 7 Apr 2011
a = 0 + ismember('on', get(gca,{'XMinorGrid','YMinorGrid','ZMinorGrid'});
1 Comment
More Answers (0)
See Also
Categories
Find more on Other Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!