faire le plot du nombre du boucle pour n assez grand ,le plot pour le nombre d'operation,le plot du temp d'execution
Afficher commentaires plus anciens
function i = pdga(n)
factors = factor(n);
if length(factors) == 1
i = 1;
else
i = prod(factors(2:end));
end
end
2 commentaires
Walter Roberson
le 8 Nov 2013
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
Walter Roberson
le 8 Nov 2013
That looks suspiciously like my code...
Réponses (0)
Catégories
En savoir plus sur Genetic Algorithm dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!