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 LinuxCategories
Find more on Number Theory in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | I fixed a warning bug by eliminating the final end statement. |
