필터 지우기
필터 지우기

semilogx problem with two data sets

조회 수: 1 (최근 30일)
Milenko
Milenko 2013년 9월 19일
My code:
load('ap08.dat')
load('periods.dat')
a=reshape(ap08,2,24)
x=periods
e=a(1,:)
e1=e(24:-1:1)
h=a(2,:)
h1=h(24:-1:1)
im=figure;
semilogx(x,e1,'b')
semilogx(x,h1,'p')
saveas(im,'apr01.jpg');
It works ok for e1 but does not draw h1.
How to solve this?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 9월 19일
Add
hold on
after the first semilogx() call
  댓글 수: 1
Milenko
Milenko 2013년 9월 20일
No it does not work that way,draws a line. semilogx(x,h,'p'); hold on; semilogx(x,e,'b');

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Mobile Fundamentals에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by