필터 지우기
필터 지우기

plot scale is messed up

조회 수: 4 (최근 30일)
flemingtb
flemingtb 2018년 5월 7일
댓글: Ameer Hamza 2018년 5월 7일
Wow i'm rusty... I'd like to interpolate for Wn over the range of Ln in the code below. Which it does but the plot 'X' axis is numbered from 1 to 25. Why doesn't it scale from 500 to 2500?
L = 500:500:2500;
W = [13 11 10 15 22];
Ln = 500:100:2500;
Wn = interp1(L, W, Ln);
  댓글 수: 1
jonas
jonas 2018년 5월 7일
How do you plot?

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

채택된 답변

Ameer Hamza
Ameer Hamza 2018년 5월 7일
Plot using
plot(Ln, Wn)
  댓글 수: 2
flemingtb
flemingtb 2018년 5월 7일
that was easy...thank you.
Ameer Hamza
Ameer Hamza 2018년 5월 7일
You are welcome.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by