MATLAB: What does it means p(nx,:)

pp(nxp(ny

if I have
nx=21 #points in the grid on x direction
ny=21#points in the grid on y direction
and I want to create array
p=zeros((nx,ny))
then What does it means
p(nx,:)??

Best Answer

Set an error breakpoint to cause MATLAB to stop when the error occurs then run your code. When it stops at the error, check that the matrix u is the size you think it should be and that ny has the value you think it should. If either of those don't match your expectations, work your way back through your code until you determine where and why they changed.
Related Question