How can i multiply cell arrays?
120 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gn Gnk
el 6 de Dic. de 2019
Comentada: Stephen23
el 7 de Dic. de 2020
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 comentarios
Respuesta aceptada
Más respuestas (1)
choonghyun lee
el 7 de Dic. de 2020
Editada: Stephen23
el 7 de Dic. de 2020
M = cellfun(@(x,y) x.*y, H,X,'UniformOutput',false)
1 comentario
Stephen23
el 7 de Dic. de 2020
M = cellfun(@times, H,X, 'UniformOutput',false)
Ver también
Categorías
Más información sobre Data Types en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!