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

4 次查看(过去 30 天)
I am not good at programming; but I think it should look like this:

采纳的回答

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

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by