help understanding simple Vectorization
Mostrar comentarios más antiguos
Hi,
I am new to vectorization and would appreciate if someone could help me vectorize the following;
for i = 1: length(A)
idx = A(i,1);
C(i) = A(i,1)*B(idx);
end
1 comentario
Fangjun Jiang
el 6 de Ag. de 2011
Please provide an example data. Sometimes the size (of the data) does matter.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Simulink 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!