MATLAB Matlab help, creating a map from three arrays

  • Thread starter Ahmes
  • Start date
1. The problem statement, all variables and given/known data
I'm given three (one-dimensional) arrays, names x, y & p.
I want to draw a map, where p determines the color, and (x, y) are the coordinates.

3. The attempt at a solution
Usually I would use contourf, but here x & y are distributed quite randomly on the plane, so I can't create them matrices with meshgrid (I tried just filling matrices with these arrays, and the result is horrible).

I.e. The problem is that those are array that I should map and not matrices.

Thanks in advance!

Want to reply to this thread?

"Matlab help, creating a map from three arrays" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving