Info

This question is closed. Reopen it to edit or answer.

How can I make plots more smooth?

1 view (last 30 days)
Aka
Aka on 16 Jun 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
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?

Answers (1)

Sujay C Sharma
Sujay C Sharma on 17 Jun 2020
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.

This question is closed.

Community Treasure Hunt

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

Start Hunting!