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

3 views (last 30 days)
I am not good at programming; but I think it should look like this:

Accepted Answer

Guillaume
Guillaume on 23 Mar 2019
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;

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!