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
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.
mat(i,j)=partBhelper (x,y, theta,a)
increment x by dx;(how?)
reset x to -10 (how?)
increment y by dy(how?)
display the matrix but scale it to 0 to 255 (hint. imshow())
see my underlined answer,because i'm not sure and do not know how to make it in the source code.