How to vectorise this function

How to vectorize this function:
NumI = 0;
for i=1:100
if Value(i) < 10000
NumI = NumI +1;
end
end
Elements = zeros(5000, NumI);
%% Value - array of float values

回答(2 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

标签

编辑:

2020-11-17

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by