how to make a plot smooth

조회 수: 5 (최근 30일)
Mayank Lakhani
Mayank Lakhani 2015년 8월 11일
댓글: Star Strider 2015년 8월 12일
How to smooth a plot?
len1 = [25, 250, 500, 750, 1000];
for k1 = 1:length(len1)
standard_deviation1(k1) = std(resdphs(1:5000, len1(k1)));
end
f10 = [110, 100, 90, 80, 70];
figure(3),plot(f10, standard_deviation1);xlabel('frequency'); ylabel('standarddev');
grid
  댓글 수: 2
Adam
Adam 2015년 8월 11일
Your plot seems to bear no relation to the code that comes with it.
Mayank Lakhani
Mayank Lakhani 2015년 8월 11일
Hey, Adam sorry for my mistake.

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

채택된 답변

Star Strider
Star Strider 2015년 8월 11일
I’m not certain what you want to do, but you might consider experimenting with polyfit and its friends.
  댓글 수: 4
Mayank Lakhani
Mayank Lakhani 2015년 8월 12일
Hey Star Strider, thanks it is working :)
Star Strider
Star Strider 2015년 8월 12일
My pleasure!

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by