Undefined function 'times' for input arguments of type 'struct'.
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i keep getting the above error when i try to module a signal using Amplitude modulation.
im very new to this software so maybe its something really minor, but i cant seem to find the solution anywhere.
x=m.*c;
im getting the error in the above line where m is the message wave and c is the carrier wave.
by the way these where passed from another function to this modulating function.
hope someone can help Thanks in advance
0 comentarios
Respuestas (1)
Wayne King
el 28 de Dic. de 2013
Editada: Wayne King
el 28 de Dic. de 2013
I think you need to show us how you are forming your variables m and c - is either one or both a structure array?
They clearly aren't vectors.
For example, the following works to form an amplitude-modulated signal:
Fs = 20000;
t = 0:1/Fs:1;
m = (1+cos(2*pi*10*t));
c = sin(2*pi*1000*t);
x = m.*c;
0 comentarios
Ver también
Categorías
Más información sobre Modulation 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!