Matlab单元格数组函数代替循环

时间:2014-09-24 05:04:46

标签: matlab

for i=1:95635
Cross = length(intersect(Array_Bigram(i),Array_test_words));
Union = length(union(Array_Bigram(i),Array_test_words));
JI= Cross/Union;
JacI(i) = JI;
end

如何在没有长循环的情况下执行此操作,并且会更快?

0 个答案:

没有答案