pointwise multiplication of sparse matrix with full array
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
2 Kommentare
Torsten
am 13 Dez. 2022
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
am 13 Dez. 2022
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!