How to convert MATLAB code below into c# code below. I need some assistance
theta=0:pi/180:2*pi;
costheta=cos(theta);