Fs = 5000; Fc = 2000; t = [0:Fs-1]'/Fs; m = cos(2*pi*(20)*t); mhilb = conv((1/pi*t),m);
s = m.*cos(2*pi*Fc*t) + mhilb.*sin(2*pi*Fc*t); plot(t,s)
Error Error using .* Matrix dimensions must agree.
Please HELP!!!!

 Respuesta aceptada

Henrik
Henrik el 16 de En. de 2015
If you format your code it's easier to read for people here.
The error message means that some of the matrices that you multiply are not the same size.
It's mhilb that's different, try
mhilb = conv((1/pi*t),m,'same');

1 comentario

qusay hawari
qusay hawari el 16 de En. de 2015
Thanks it worked! ya i will format my codes next time(its my first time). :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 16 de En. de 2015

Comentada:

el 16 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by