How do you multiply two arrays with a for loop?
Mostrar comentarios más antiguos
I have two separate arrays, both 1 column. However, Array1 is 300 cells, while Array2 is 600000 cells. I want to iterate through both of these arrays simultaneously. For each element in Array1, I would like to multiply it by 2000 elements in Array2, saving the output.
Then the second element in Array1 would be multiplied by the next 2000 elements in Array2. And so forth.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!