MATLAB: How to do tedious mathematical calculation with matlab

mathematical calculationscalar summation

it is really tedious, probably impossible, to do the following equation using a calculator. Please note that cosine and sine functions are in degrees
the result should b a scalar value if i am right?

Best Answer

k = 0:65119;
sum( cosd(3.6*k) .* sind(3.6*k) ).^2