File Exchange

image thumbnail

Easter Sunday Indicator

version (1.01 KB) by Alexandros Leontitsis
Indicates if a date is the Easter Sunday

1 Download

Updated 10 Oct 2006

No License

Returns an indicator 0 or 1 that tells if a date is the Easter Sunday according to either the Catholic or the Orthodox dogma.

>> e=easter(15,4,2002,'Catholic')

e =


>> e=easter(31,3,2002,'Catholic')

e =


Cite As

Alexandros Leontitsis (2021). Easter Sunday Indicator (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Why is this in Financial Modeling & Analysis?

Bob Jones

just because you can, doesn't mean you should.

Stijn Helsen

The result doesn't seem to be correct!!

Stijn Helsen

Some comments about the Matlab-code itself. Inputs like 'zeros(2,1)' pass the input test, while they shouldn't. Why not something like
... if numel(day)~=1 ....?
The last test in the two blocks can be moved to the end (the same), and shorter:
e=day==Easterday && month==Eastermonth;

MATLAB Release Compatibility
Created with R14
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!