how to make a condition: if grid minor;

조회 수: 1 (최근 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 CenterFile Exchange에서 Other Formats에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by