use cell items in the conv

조회 수: 1 (최근 30일)
Robert Redinbo
Robert Redinbo 2021년 10월 25일
댓글: Image Analyst 2021년 10월 25일
I Tried ab(u,v)=conv({a(u,1)},{b(v,1)}) where a and b are cels hoding the polymonial
I get Error using conv2
Invalid data type. First and second arguments must be numeric or logical.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 10월 25일
conv() will never be able to process cell arrays .
You need to use
ab = conv(a{u,1}, b{v,})
  댓글 수: 2
Robert Redinbo
Robert Redinbo 2021년 10월 25일
ab = conv(a{u,1}, b{v,1})
This give me
Error using conv2
Invalid data type. First and second arguments must be numeric or logical.
Error in conv (line 43)
c = conv2(a(:),b(:),shape);
Image Analyst
Image Analyst 2021년 10월 25일
Here's another chance to read the posting guidelines:
After that you'll know you should have attached your variables.
save('answers.mat', 'a', 'b', 'u', 'v');
We'll check back later for the attached mat file.

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

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by