Lucas.m

Given a nonnegative integer n, return the nth Lucas number.

Vous suivez désormais cette soumission

Given a nonnegative integer n, return the nth Lucas number. Return an error message if the argument is not an integer.

Citation pour cette source

David Terr (2026). Lucas.m (https://fr.mathworks.com/matlabcentral/fileexchange/5094-lucas-m), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

I fixed a warning bug by eliminating the final end statement.