image thumbnail

Conversion between Equatorial and Ecliptic Coordinates

version 1.0.0.0 (1.79 KB) by Dmitry Savransky
Convert between the equatorial and ecliptic celestial coordinate systems.

1.8K Downloads

Updated 13 Mar 2009

View License

[alpha,delta] = eclip2equat(lambda,beta) returns the right ascension and declination in the equatorial coordinate system corresponding to the longitudinal and latitudinal coordinates in the ecliptic coordinate system (lambda and beta).

[lambda,beta] = equat2eclip(alpha,delta) returns the longitudinal and latitudinal coordinates in the ecliptic coordinate system corresponding to coordinates of right ascension and declination (alpha and delta) in the equatorial coordinate system.

All inputs and outputs are in units of radians. longitudinal coordinates will be in the range of [-pi,pi] while latitudinal coordinates will be in the range [-pi/2, pi/2]. Inputs may be vectors but must be of equal size;

Cite As

Dmitry Savransky (2021). Conversion between Equatorial and Ecliptic Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/23285-conversion-between-equatorial-and-ecliptic-coordinates), MATLAB Central File Exchange. Retrieved .

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