Multiply each column of cell array by column vector
이전 댓글 표시
I have a 10x1 cell of separate events with each array having a size 384(time) x 5328(pixel). I want to multiply each column in each cell array by a column vector (C = 384x1). I have tried this code but it's not giving me the correct answer.
A = cell(size(B));
for jj = 1:10
A{jj,1} = B{jj,1},[],1 .* C;
end
Thanks
댓글 수: 1
Stephen23
2015년 10월 26일
related to this question:
채택된 답변
추가 답변 (1개)
Andrei Bobrov
2015년 10월 26일
A = cell(size(B));
for jj = 1:10
A{jj} = bsxfun(@times,B{jj},C);
end
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!