언어/ㄴMatlab
[matlab] plot 관련 코드
공대우냉이
2017. 10. 19. 11:06
figure(): 실행때마다 새로운 plot 창 생성
subplot: 같은 figure plot 창에 여러개의 plot 출력
hold on: 위의 출력한 그래프에 새로운 그래프 겹쳐서 그리기
ylim, xlim: 출력 범위 설정
set(gca,'xtick or ytick',범위): x,y축 간격 설정
figure()
subplot(3,1,1);
plot(Zmixed)
hold on
plot(thre2)
subplot(3,1,2);
plot(Zica(1,:))
subplot(3,1,3);
plot(Zica(2,:))
ylim([-0.5 0.5])
set(gca,'ytick',-0.5:0.1:0.5);