n=(L/delta_x)+1;%%lecture notes 21/1/2020. Converts rectangle to a mesh
A=zeros(size(y,1),size(x,1));%%setting up the A matrix
everytime i run the for loop it says Index in position 1 is invalid. Array indices must be positive integers or logical values. I don't understand why this is happening and how to avoid it.