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.

Antworten (1)

Walter Roberson
Walter Roberson am 25 Okt. 2021

0 Stimmen

conv() will never be able to process cell arrays .
You need to use
ab = conv(a{u,1}, b{v,})

2 Kommentare

Robert Redinbo
Robert Redinbo am 25 Okt. 2021
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);
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Tags

Gefragt:

am 25 Okt. 2021

Kommentiert:

am 25 Okt. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by