Effacer les filtres
Effacer les filtres

Add the phase of a signal to magnitude of another signal

1 vue (au cours des 30 derniers jours)
AbdAlla Hefny
AbdAlla Hefny le 18 Nov 2016
I have two voice recordings A and B in the time domain. I changed into the frequency domain using the fft command.Then I got the magnitude and phase of the transform for both of them. My task is to take the phase of the second recording to the magnitude of the first. However, magnitude_A is not equal to phase_B in length. I append some zeros. The following command gives error saying that the two vectors must agree in dimensions [Although both now have the same length]. >> mixed = Amag .* exp(j*Bph); Any suggestions to solve this?
  4 commentaires
AbdAlla Hefny
AbdAlla Hefny le 19 Nov 2016
K, I found out what was the problem, one signal seems to be a matrix not a vector although the vector lengths are the same!
David Goodmanson
David Goodmanson le 19 Nov 2016
yes, in retrospect comparing size(Amag) and size(Bph) would have been a better suggestion.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by