MATLAB: Hi, I am modeling blood flow, and first I need to create structural rectangular mesh of points, so in the next step I could find the value of pressure, velocity etc. in every each point. Do you please know, how to create this mesh? Thank you

flowgridmeshstructured

I am not good at programming; but I think it should look like this:

Best Answer

Your description is not clear, and there's no point giving us code that doesn't work.
It sounds like you're looking for meshgrid (or ndgrid which extends better to higher dimensions), e.g:
x = 0:20;
y = 0:2:30;
[griddedx, griddedy] = meshgrid(x, y);
z = griddex.^2 - griddedy.^2;