help understanding simple Vectorization
Show older comments
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 Comment
Fangjun Jiang
on 6 Aug 2011
Please provide an example data. Sometimes the size (of the data) does matter.
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!