Hye, I have to replicate the following plots (it's homework).
I have to use fplot and an anonymous function for the left one and plot for the right one.
I made this script:
f = @(x) sin(5.*x)./x-cos(x./3);
title('sin(5t)/t - cos(t/3)')
a = 1/4;
b = 4;
x = linspace(0,4,10^8);
y = (b./x).*exp(-(log(x)./a).^2);
axis([0, 4, 0, 5])
legend('(a,b) = (1/4,4)', 'Location', 'north')
But my graphs aren't smooth like the example.
How can I make them smoother?