Why is that when i change my phase angle, the amplitude changes in sin and cos functions in Matlab?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nina
el 31 de Oct. de 2013
Comentada: sixwwwwww
el 1 de Nov. de 2013
I am doing simple tests trying to get back the amplitude and phase angle from fft, when i have
x = A*sin(2*pi*t*f) + B*cos(2*pi*t*f), where A = B = 1, I get the correct amplitude back which is sqrt(2) but when i add some phase angle to them, it changes, why is that? Thank you all very much!
0 comentarios
Respuesta aceptada
sixwwwwww
el 31 de Oct. de 2013
Editada: sixwwwwww
el 31 de Oct. de 2013
Dear Nina, values for sin and cos varies between -1 and 1 so when you add two sinusoidal functions(as you are doing) then at some point they are in phase and there amplitudes add up and at some points they are out of phase and there amplitudes are subtracted. So that's the reason of getting amplitudes other than expected. If you take 'fft' of one of these functions then you will get expected answer individually but in combine effect situation will be different. Maybe following link is also helpful for further explanation:
I hope it explains the reason. Good luck!
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Elementary Math en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!