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 Ansichten (letzte 30 Tage)
I am not good at programming; but I think it should look like this:

Akzeptierte Antwort

Guillaume
Guillaume am 23 Mär. 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;

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by