Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I make plots more smooth?

조회 수: 1 (최근 30일)
Aka
Aka 2020년 6월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
yyaxis left
plot(Time, X(:, strcmp(Mnem, 'A191RL1Q225SBEA')))
ax.YColor = 'k';
ylabel('Real GDP growth (annualized)');
datetick('x', 'yyyy')
yyaxis right
plot(Time, X(:, strcmp(Mnem, 'NFCI')), '--')
ax.YColor = 'k';
ylabel('NFCI (index)');
legend('GDP', 'NFCI', 'Location', 'NorthEast')
Hi, the 2 plots in above are from the same dataset, could anyone please explain how can I alter my code so that the second plot looks as smooth as the first one?

답변 (1개)

Sujay C Sharma
Sujay C Sharma 2020년 6월 17일
Hi,
Have a look at the documentation for the smooth function. This may be able to help you out.
Also, here is a simlar question that could be of some use to you.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by