Point data to a contour map

1 view (last 30 days)
Michelle
Michelle on 25 Jan 2015
Answered: Michelle on 27 Jan 2015
Hi.
I am writing a thesis and I got data from x,y,z locations of single point data with a velocity measurement of each location:
x y z va
-1.3 1.98 0.1 0.13
-1.3 1.98 0.6 0.1
-1.3 1.98 1.1 0.11
-1.3 1.98 1.6 0.15
-1.3 1.98 2.6 0.05
0 1.98 0.1 0.31
0 1.98 0.6 0.16
0 1.98 1.1 0.16
0 1.98 1.6 0.15
0 1.98 2.6 0.12
1.3 1.98 0.1 0.1
1.3 1.98 0.6 0.04
1.3 1.98 1.1 0.21
1.3 1.98 1.6 0.15
1.3 1.98 2.6 0.1
-0.695 0 0.1 0.21
-0.695 0 0.6 0.21
-0.695 0 1.1 0.1
-0.695 0 1.6 0.13
-0.695 0 2.6 0.11
0 0 0.1 0.16
0 0 0.6 0.19
0 0 1.1 0.21
0 0 1.6 0.2
0 0 2.6 0.13
0.695 0 0.1 0.27
0.695 0 0.6 0.08
0.695 0 1.1 0.2
0.695 0 1.6 0.34
0.695 0 2.6 0.21
0 0.695 0.1 0.03
0 0.695 0.6 0.09
0 0.695 1.1 0.26
0 0.695 1.6 0.26
0 0.695 2.6 0.28
0 -0.695 0.1 0.09
0 -0.695 0.6 0.25
0 -0.695 1.1 0.19
0 -0.695 1.6 0.11
0 -0.695 2.6 0.18
1.3 -1.075 0.1 0.09
1.3 -1.075 0.6 0.12
1.3 -1.075 1.1 0.1
1.3 -1.075 1.6 0.26
1.3 -1.075 2.6 0.13
0 -1.075 0.1 0.26
0 -1.075 0.6 0.22
0 -1.075 1.1 0.16
0 -1.075 1.6 0.15
0 -1.075 2.6 0.12
1.3 -1.075 0.1 0.17
1.3 -1.075 0.6 0.15
1.3 -1.075 1.1 0.16
1.3 -1.075 1.6 0.03
1.3 -1.075 2.6 0.12
Can anyone help me create a 2D plot of x-z values with a contour or anything similar so I can compare it with contour data from ANSYS.
Kind regards, Michelle

Answers (3)

Star Strider
Star Strider on 25 Jan 2015
What exactly do you want to do?
If ‘M’ is your matrix, consider that many of your ‘va’ values are collinear:
figure(1)
stem3(M(:,1), M(:,3), M(:,4))
grid on
  1 Comment
Michelle
Michelle on 25 Jan 2015
This code gives me only dots with lines, I need a surface of a x-z value.

Sign in to comment.


Michelle
Michelle on 25 Jan 2015
Hi I want to make a color plot of the x,z values with the different colors of va for the point. I can do point values, but want a whole gridsystem colored. So I guess I need to integear or something

Michelle
Michelle on 27 Jan 2015
Sorry not a integear but a interpolation or aomeething similar. I need to create a contour map of dot point of data in x-z direction

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!