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 (2024). Lucas.m (https://www.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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

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