A non-standard array operation, is there an easier way?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am trying to create a matrix by multiplication of two other but it is not a standard multiplication:
A=1x3 array
B=100x1 array
C = [A(1,1)*B, A(1,2)*B, A(1,3)*B];
Is there an easier way to create the C matrix? Thanks.
1 comentario
Respuestas (2)
Matt J
el 26 de Mzo. de 2013
Looks like pretty standard matrix multiplication to me, given the dimensions you've provided,
C=B*A;
0 comentarios
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!