how to plot a summation signal in Matlab?

Answers (1)

You need to check the code.
A = rand ;
B = rand ;
k = 1:2:99 ;
t = linspace(0,100)' ;
x =zeros(size(t)) ;
for i = 1:length(t)
x(i) = A+sum(B./(pi*k).*exp(1i*(-pi/2+k*t(i)))) ;
end
plot(t,x)

Products

Release

R2022a

Asked:

on 25 Aug 2022

Answered:

on 25 Aug 2022

Community Treasure Hunt

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

Start Hunting!