Info
This question is closed. Reopen it to edit or answer.
The function without if statement
2 views (last 30 days)
Show older comments
How to vectorize this function with if statement
Number = 100
VectorIm = zeros(5000, Number); %%% initialise VectorIm with 5000 and 100
i = 1; %%% counter of column
%%% Values - distance between VectorIm image and ManyVecImage image (float value)
0 Comments
Answers (1)
Bjorn Gustavsson
on 17 Nov 2020
That should to be the same as:
VectorIm = ManyVecImage(:,Values < 10000);
HTH
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!