How can i multiply cell arrays?
190 views (last 30 days)
Show older comments
Hello ,
i want to multiply an array H which is 2x2 cell array (each cell contains a 1x500 array) with an array X which is 2x1 array (also each cells contains 1x500 array) .When i try to multiply these arrays like this H.*X i get the following error: Undefinedoperator '.*' for input arguments of type 'cell'. How can i multiply these cell arrays?
Thank you.
0 Comments
Accepted Answer
More Answers (1)
choonghyun lee
on 7 Dec 2020
Edited: Stephen23
on 7 Dec 2020
M = cellfun(@(x,y) x.*y, H,X,'UniformOutput',false)
1 Comment
See Also
Categories
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!