If carefully built, a sundial is perfectly capable of keeping accurate time. The problem is that you need a different sundial for every combination of latitude, longitude, and day of the year. Fortunately MATLAB® can make this a manageable problem. By turning this procedure around, you can also use MATLAB to tell you which way is north.
The algorithms used here for MATLAB sundial creation were adapted from https://www.dezonnewijzerkring.nl/
Cite As
Ned Gulley (2024). Building Sundials (https://www.mathworks.com/matlabcentral/fileexchange/5481-building-sundials), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.