Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
function i = pdga(n)
factors = factor(n);
if length(factors) == 1
i = 1;
else
i = prod(factors(2:end));
end
end

Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by