Help creating and manipulating grids
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 8 May 2018
"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 Comments
Walter Roberson
on 14 May 2018
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?
See Also
Categories
Find more on Transform Data in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!