Borrar filtros
Borrar filtros

2 signals to 1 channel ? use FFT

3 visualizaciones (últimos 30 días)
Hünkar Hançer
Hünkar Hançer el 3 de Nov. de 2016
Comentada: Daniel kiracofe el 11 de Nov. de 2016
How can I change 2 signal to 1 channel.
m1(t)= (A1 Cos2 pi F1 t)
m1(t)= (A2 Cos2 pi F2 t) to one channel
thank you for help.
  2 comentarios
Jan
Jan el 4 de Nov. de 2016
Editada: Jan el 4 de Nov. de 2016
The question is not clear. Please use standard Matlab syntax, because I cannot imagine what "m1(t)= (A1 Cos2 pi F1 t)" means. Defining "m1" twice is at least confusing.
Hünkar Hançer
Hünkar Hançer el 4 de Nov. de 2016
Teacher asked like this. İ asked today him. He said, u can use fft. Some question. 2 signal to 1 channel. He said just this..didnt explain.

Iniciar sesión para comentar.

Respuestas (2)

Jan
Jan el 4 de Nov. de 2016
Do you want to concatenate the signals? Then cat is the right command. Or do you want to add the signals? Then add them using + and perhaps you need a normalization afterwards, if any values exceed the allowed range:
S = S / max(abs(S(:));
  1 comentario
Hünkar Hançer
Hünkar Hançer el 6 de Nov. de 2016
Teacher asked like this. İ asked today him. He said, u can use fft. Some question. 2 signal to 1 channel. He said just this..didnt explain.

Iniciar sesión para comentar.


Daniel kiracofe
Daniel kiracofe el 6 de Nov. de 2016
assuming that t is a vector containing time intervals, and that F1 and F2 are frequencies, and A1 and A2 are amplitudes, then I assume that what you want is this:
m1 = A1* cos(2 * pi * F1 * t) + A2 * cos( 2 *pi F2* t)
If that is not what you want then I don't understand the question.
  2 comentarios
Hünkar Hançer
Hünkar Hançer el 10 de Nov. de 2016
today, teacher told me , u should use tdm-pcm function. and he said, to signal must go 1 channel.
Daniel kiracofe
Daniel kiracofe el 11 de Nov. de 2016
ah. tdm means "time division multiplexing". https://en.wikipedia.org/wiki/Time-division_multiplexing
I don't know if there is a specific function to do that in matlab. and I don't know how to do using an FFT. But it's basically just interleaving the samples. if you have 2 vectors called m1 and m2, each of length N, you can just do this:
for i = 1:N tdm_signal(2*i-1) = m1(i); tdm_signal(2*i ) = m2(i); end

Iniciar sesión para comentar.

Categorías

Más información sobre Fourier Analysis and Filtering 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!

Translated by