%% Cosine of 90 degrees compared to cosine of π/2 radians

cosd(90)

%

cos(pi/2)

% Copyright 2012 The MathWorks, Inc.