How can I do a summation of a signal.
Show older comments
if i have a signal y = Acos(wt) and now i want to vary my amplituded and angular frequency. like that- ∑A(i)cos(w(i)t) where i varies from any 1 to 100.
I write the code like this
t = 0:0.01:1;
A(1:length(t)) = 0;
w(1:length(t)) = 0;
for i = 1:length(t) y= A*cos(w*t) end But i get an error... please help
1 Comment
ES
on 11 Oct 2013
What is the errot you get?
Accepted Answer
More Answers (1)
Categories
Find more on Mathematics 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!