How to create a function as sum of some sine functions?
Mostra commenti meno recenti
I am trying to create a function which looks like:
but I am not finding the way how do it it. Can someone help me?
1 Commento
SHIVAM KUMAR
il 6 Gen 2021
Is your theta in radians or degrees ?
Risposta accettata
Più risposte (1)
SHIVAM KUMAR
il 6 Gen 2021
Modificato: SHIVAM KUMAR
il 6 Gen 2021
This can be done like
y=0; %necessary to add the other things
for i=1:length(a)
y=y+a(i).*sind(2*pi*f(i).*t+theta(i));
end
If this works accept this answer but
if this does not work tell the error/other requirements in comment
1 Commento
Klaudjo Aliaj
il 8 Gen 2021
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!