faire le plot du nombre du boucle pour n assez grand ,le plot pour le nombre d'operation,le plot du temp d'execution
1 次查看(过去 30 天)
显示 更早的评论
function i = pdga(n)
factors = factor(n);
if length(factors) == 1
i = 1;
else
i = prod(factors(2:end));
end
end
2 个评论
Walter Roberson
2013-11-8
Approximate translation:
Make the plot of the number of loop for n large enough, and the plot for the number of operation, and the plot of execution time
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!