What did you use in Excel? When I use this:
=COS((3.14159265358797/180) * 300000/6378136.46)
(because there is no cosd() function in Excel and I need to convert from your degrees to radians), it gives me the same answer as MATLAB.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!