フィルターのクリア

how to make a condition: if grid minor;

3 ビュー (過去 30 日間)
Modestas Sekreckis
Modestas Sekreckis 2011 年 4 月 7 日
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'});
  1 件のコメント
Paulo Silva
Paulo Silva 2011 年 4 月 7 日
that's a very sneaky way to convert logical to double :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOther Formats についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by