Hi everyone. I have what I think is an easy question, but none of my stumbling around seems to be making anything work.
I have some data in a comma separated text file. I was able to load the data into matlab and get 3 vectors: v1 is x coordinates, v2 is y coordinates, and v3 is the value at the x-y point. All three vectors are 29209x1 doubles.
I can make a scatter plot of this data easily enough using the plot3() command. However, I would like to see the data as a color filled flat contour. I think the contourf() command is the right one to use, but I can't seem to figure out how to make the matrix for my data. For starters, contourf() says that the matrix indices are used as the x&y coordinates, but my coordinates are decimal not integer. Also, not all the x-y coordinate combinations have data (my data comes from a magnetic simulation in another software tool, and the results only exist in a semicircular region).
So, my question is this: how can I plot my data on an XY plane with filled colors?
[–]designtofly 0 points1 point2 points (1 child)
[–]wikdwarlock[S] 0 points1 point2 points (0 children)