MATLAB: Error using cos Not enough input arguments. HELP

error using cos not enough input arguments.

Hi all,
Can anyone help me with this problem – Error using cos Not enough input arguments.
x=0:0.25:5.*pi;
y=0:0.25:2.*pi;
[x,y]=meshgrid(x,y);
z = cos.*((x).*sin(y)).*((1-3.*cos((y).^2))-(x.^2).*sin((y).^2)).*cos(x);
Error using cos Not enough input arguments.
I'm new to MatLab and I need to plot a contour map using this function but I can't seem to find a way to get rid of the error message. Any help would be much appreciated.
Thanks, Kayn.

Best Answer

You missed something in cos.* ,maybe you want
z = cos(x).*((x).*sin(y)).*((1-3.*cos((y).^2))-(x.^2).*sin((y).^2)).*cos(x);
You missed something in cos.