Lucas.m

Version 1.0.0.0 (384 Bytes) by David Terr
Given a nonnegative integer n, return the nth Lucas number.
2.8K Downloads
Updated 27 Dec 2004

No License

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

Cite As

David Terr (2026). Lucas.m (https://se.mathworks.com/matlabcentral/fileexchange/5094-lucas-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

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