check my errors,i can't run mathlab...

Generate an image I with x and y both varying from -10 to 10 with step-size dx and dy both as 0.2, and scale the intensity value of the image to [0, 255];

**theta = pi/6 **

** dx = 0.2 **

** dy = 0.2 **

** x=-10 **

** y=-10 **

** a=0.4 **

** mat = zeros(100) %create 100 by 100 matrix. y? -10 to 10 is 20.. and increment by 0.2 so -10, -9.8, -9.6 ... 9.6, 9.8, 10 has 100 in total. **

** for i=0:100**

** for j=0:100 **

** mat(i,j)=partBhelper (x,y, theta,a) **

__increment x by dx;(how?)__

** end **

** **__reset x to -10 (how?)__

__increment y by dy(how?)__

** end **

** **__display the matrix but scale it to 0 to 255 __(hint. imshow())

**end**

see my underlined answer,because i'm not sure and do not know how to make it in the source code.

thank you,

there is one part mathlab can run

mathlab could not run __mat(i,j)=partBhelper (x,y, theta,a),__

what is the mistakes?

__function name: partb__

function return: (returns nothing)

function parameters: (nothing)

**theta = pi/6 **

** dx = 0.2 **

** dy = 0.2 **

** x=-10 **

** y=-10 **

** a=0.4 **

the underlined answer mathlab could not run because of unexpected MATLAB operator,

why?