mat2cell operation - add operation every cell
1 次查看(过去 30 天)
显示 更早的评论
i have an mat2cell A 12*12 blocks cell, each cell there's 8*8 pixel. then i have mat2cell B 8*8 blocks cell wih each cell there's 8*8 pixel. i want to make operation that every cell in mat2cell B add with whole cell in mat2cell A.
A = mat2cell(x, [8 8 8 8 8 8 8 8 8 8 8 8] , [8 8 8 8 8 8 8 8 8 8 8 8]);
B = mat2cell(y, [8 8 8 8 8 8 8 8] , [8 8 8 8 8 8 8 8]);
2 个评论
Walter Roberson
2013-1-23
To check: you want A{1,1} to be added to each cell B{1,1}, B{1,2}, B{3,5} and so on? And you want A{1,2} the same, producing another set of answers? So the overall result should have numel(A) times numel(B) results, each 8 x 8 ?
What shape do you want the result to be? 4 dimensional? R{P,Q,R,S} = A{P,Q} + B{R,S} ?
I must admit that it is not obvious to me how such a computation would be of value.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!