MATLAB: HOW to write cos^2(t) in matlap

MATLAB

HOW to write cos^2(t) in matlap

Best Answer

t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course