MATLAB: How to graph an equation with ‘changing constant’ values

changing constants

Hi,
I have a relatively straightforward question: How can I graph a surface with a changing 'constant' value depending on what the 'x' value is?
x = [-10:10];
y = [-10:10];
Constant = 5;
Equation = @(x,y) Constant + 5.*x + 5.*y;
%

where:
Constant = Constant + 10 for x < 3
Constant = Constant + 100 for x >= 3 > 6
Constant = Constant + 1000 for x >= 6
%
Thank you!

Best Answer

Equation = @(x,y) Constant + 10 + 90*(x>=3) + 900*(x>=6) + 5.*x + 5.*y;