Help creating and manipulating grids

조회 수: 2 (최근 30일)
Maria Angela Agizza
Maria Angela Agizza 2018년 5월 8일
편집: Walter Roberson 2018년 5월 15일
Hello everybody,
I need the expertise of the Matlab community for a problem concerning grid creation and manipulation.
I have 2 vectors, featuring X and Y data, and anothe one, which contains values of the data for the X-Y pairs. I obtained a grid using meshgrid, so to be able to plot and visualize the data.
Here comes the first question, are the interpolated values calculated at the nodes of this grid?
Going on with the task, at this point I need to visualize (plot) the grid I generated, how can I do that?
As well, I would need a way to create cells from the information I have about the nodes (if my guess about my first question is correct).
After, I need to be able to identify each cell, to identify the neighbor cells of each cell, and then to extract the values of the data at the boundary between each cell. How do I do it?
I am having a look around since some time, but still haven't found an answer to my questions.
Any help is highly appreciated.
Best regards.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 5월 8일
"are the interpolated values calculated at the nodes of this grid?"
To that point, you have not done any interpolation, so we do not know.
"Going on with the task, at this point I need to visualize (plot) the grid I generated, how can I do that?"
Typically with surf(), but more generally it depends on the kind of plot you need and the number of dimensions you are working with.
"I would need a way to create cells from the information I have about the nodes"
What kind of cells?
Is your X and Y and resulting data scattered information, or do you have data that can be reshaped into a rectangular grid?
When I look at your questions I have to wonder if perhaps you have scattered data, and if you are perhaps talking about veroni cells ?
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 5월 14일
How do you know which points are "outside the domain" as compare to points that are inside the domain but do not happen to have any data?
For example,
1+++
++2+
++++
the 2 is clearly inside the domain, but is the 1 outside the domain or is it inside the domain but does not happen to have data?
Does direct contact include diagonal?
Maria Angela Agizza
Maria Angela Agizza 2018년 5월 15일
편집: Walter Roberson 2018년 5월 15일
Hello, thanks for replying again.
About the interpolation outside the boundary, I posted another question here https://de.mathworks.com/matlabcentral/answers/400688-interpolation-outside-the-domain-meshgrid-and-griddata . I supposed that splitting the question and providing images would have been easier. Of course, any help is appreciated there as well.
About my question here, how would you accomplish the task about the fluxes from one grid cell to the other?
Many thanks and best regards.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Transform Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by