Info
此问题已关闭。 请重新打开它进行编辑或回答。
The function without if statement
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Bjorn Gustavsson
2020-11-17
That should to be the same as:
VectorIm = ManyVecImage(:,Values < 10000);
HTH
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!