the 1st part of Walter's answer has syntax error:
- it's most likely that t will have a higher amount of elements than vector n
- therefore sin(n.*pi.*t) will always find one or more terms (of n) with a numel(n) href = ""</a> numel(t) mismatch
returning error, from the attempted d.*t
Let me suggest the following:
for n = 1:2:15
Increase L to improve signal time resolution.
if you find these lines useful would you please mark my answer as Accepted Answer?
To any other reader, if you find this answer of any help please click on the thumbs-up vote link,
thanks in advance for time and attention