How do to fix this invalid data type error?

8 visualizaciones (últimos 30 días)
Christopher Resuello
Christopher Resuello el 17 de Abr. de 2024
Comentada: Taylor el 17 de Abr. de 2024
Hi,
I have an issue with this data type error and not quite sure what the problem is. The reset of the code is designed for a filter, and had it exported.
Invalid data type. First and second arguments must be numeric or logical.
Error in conv (line 43)
c = conv2(a(:),b(:),shape);
Error in FDM_17ES04 (line 88)
DSBSC_BPF1=conv(BPF1,Xfdm);

Respuesta aceptada

Taylor
Taylor el 17 de Abr. de 2024
Either a, b, BPF1, or Xfdm is not a numeric or logical data type. You can verify this by using isnumeric and islogical.
  3 comentarios
Christopher Resuello
Christopher Resuello el 17 de Abr. de 2024
I found the issue, the filter is assigned as an object rather than array. Thanks for the tip
Taylor
Taylor el 17 de Abr. de 2024
Yes. conv requires the first two inputs to be either numeric or logical types.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Floating-Point to Fixed-Point Conversion 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