MATLAB: 3D plot. Invalid expression. Why

3d plots

I am trying to plot a simple function but I get error:
Z = -25.6+ ((1/(1+10^(7.6-X.)))*(-24.6+Y.));
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched
delimiters.
Code:
x=(5:0.1:10);
y=(0:1:50);
[X,Y]=meshgrid (x,y);
Z = -25.6+ ((1/(1+10^(7.6-X.)))*(-24.6+Y.));
When I try other functions it works but not this one.

Best Answer

Z = -25.6+ ((1./(1+10.^(7.6-X))).*(-24.6+Y));
in particular no periods after X and Y