Wierd wiggle in plot of symbolic expression
Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;
cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);
figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]);Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;
cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);
figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]); Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;
cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);
figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]); plot, symbolic MATLAB Answers — New Questions