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);

 채택된 답변

Taylor
Taylor 2024년 4월 17일

1 개 추천

Either a, b, BPF1, or Xfdm is not a numeric or logical data type. You can verify this by using isnumeric and islogical.

댓글 수: 3

BPF1 is set as an object filter (BPF) from filterDesigner, so you think that might be the problem?
note xfdm is defined as varaible with
-0.841879829913601 -0.675395096318735 -0.404490005071169 -0.222097795253459 -0.0658598060486152 0.184276925376553 0.424559373917724 0.323850969477063 -0.325374164091446 -1.23446901876610 -1.66388332066170 -0.973043605924399 0.748618201118885 2.56286071235192 3.28359799458359 2.37002639972405 0.375766006279259 -1.44980225924099 -2.10093303870032 -1.52374921818176 -0.524995117083784 -0.00938727728855615 -0.239519672576249 -0.744859348422625 -0.885342679731925 -0.485124195713209 0.0650070540719415 0.288330803446391 0.162261590827838 0.148769633429050 0.670062968454874 1.56172010961965 2.09209950700648 1.59874110732255 0.168532115007574 -1.30921488572473 -1.83481579037920 -1.15052947956635 0.0196173893637222 2.58778525229247
I found the issue, the filter is assigned as an object rather than array. Thanks for the tip
Taylor
Taylor 2024년 4월 17일
Yes. conv requires the first two inputs to be either numeric or logical types.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2024년 4월 17일

댓글:

2024년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by