Azzera filtri
Azzera filtri

how to make a condition: if grid minor;

3 visualizzazioni (ultimi 30 giorni)
Hi, how to make a condition, if grid minor; I am trying to do:
if grid==minor
a=1
else
a=0
end

Risposta accettata

Walter Roberson
Walter Roberson il 7 Apr 2011
a = 0 + ismember('on', get(gca,{'XMinorGrid','YMinorGrid','ZMinorGrid'});
  1 Commento
Paulo Silva
Paulo Silva il 7 Apr 2011
that's a very sneaky way to convert logical to double :)

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by