[MATLAB] 유용한 디폴트 default 속성 명령어 저장
·
프로그래밍 Programming/매트랩 MATLAB
그래프를 많이 그릴 일이 있을 때 쓰면 좋은 명령어들이다. 아래의 set( groot, ~)에서 groot 대신 0으로 지정해도 동일하다. 1. Plot의 line 두께 (오직 plot에만 적용된다. 즉, contour 같은 다른 그래프에서 적용 안됨) set( groot, 'defaultLineLineWidth', 1.5 ) ; % plot line 두께 지정 2. Grid on 을 default로 지정 set( groot, 'defaultAxesXGrid', 'on' ) ; % x축 방향으로 grid 생성 set( groot, 'defaultAxesYGrid', 'on' ) ; % y축 방향으로 grid 생성 3. 축에 있는 글씨 크기 지정 (title 포함) set( groot , 'defaultA..