how to plot a summation signal in Matlab?
Show older comments
Answers (1)
KSSV
on 25 Aug 2022
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)
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!