pointwise multiplication of sparse matrix with full array
显示 更早的评论
How can I do this operation?
A=sparse([1 0;0 0]);
B=rand(2,2,2,2);
C=A.*B;
the only way is converting B into a sparse array with this function?
remark: A is sparse but B is not.
采纳的回答
更多回答(1 个)
2 个评论
Torsten
2022-12-13
The author of ndSparse (Matt J) is active in this forum.
Maybe you should open a new question where ndSparse is part of the title and ask him directly.
Sandra Martinez
2022-12-13
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!