MATLAB: I need help of that output’s code please. Thanks in advance.

homeworktaylor series function using matlab

Best Answer

Hints: check out plot(), linspace(), factorial() and "hold".
x = linspace(-3, 3, 500);
plot(x, x, '--');
grid on;
hold on;
y1 = ....... Check out factorial() in the help.
plot(x, y1, 'b.')
y2 = ....... Check out factorial() in the help.
plot(x, y2, 'r-');
and so on for the other equations.
Related Question