when i run this code i'm getting and error stating "matrix dimensions must agree",how can i solve this error?

5 visualizaciones (últimos 30 días)
frame=y(2001:2001+fsize);
>> plot(frame);
>> plot(frame.*hamming(length(frame)));

Respuesta aceptada

Bish Erbas
Bish Erbas el 27 de Sept. de 2018
Add transpose to first line:
frame=y(2001:2001+fsize)';
Element-by-element multiplication works only if both vectors are horizontal/vertical.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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