How can I create contour for velocity?
2 views (last 30 days)
Show older comments
Hello;
I want to contour velocity field . This velocity field has one column for X , one column for Y and one column for velocity values. How can I contour this matrix?
The Matrix is written such as following:
X [ m ] Y [ m ] Velocity v.Gradient
-7.70E-02 2.56E+00 2.15E+00
-7.14E-02 2.56E+00 1.86E+00
-4.05E-03 2.56E+00 1.70E+00
1.69E-02 2.56E+00 1.61E+00
2.20E-02 2.56E+00 1.66E+00
-2.65E-03 2.56E+00 1.63E+00
1.41E-04 2.56E+00 1.64E+00
-4.81E-03 2.56E+00 1.62E+00
-7.40E-03 2.56E+00 1.77E+00
-8.48E-03 2.56E+00 1.69E+00
-1.51E-04 2.56E+00 1.62E+00
-1.09E-02 2.56E+00 1.69E+00
-1.59E-02 2.56E+00 1.74E+00
-1.53E-02 2.56E+00 1.79E+00
-9.46E-04 2.56E+00 1.67E+00
4.61E-03 2.56E+00 1.66E+00
-1.30E-02 2.56E+00 1.69E+00
-1.61E-02 2.56E+00 1.69E+00
-1.95E-02 2.56E+00 1.71E+00
-2.14E-02 2.56E+00 1.76E+00
-2.17E-02 2.56E+00 1.74E+00
-1.88E-02 2.56E+00 1.73E+00
-1.48E-02 2.56E+00 1.72E+00
-1.15E-02 2.56E+00 1.72E+00
-8.58E-03 2.56E+00 1.71E+00
-5.87E-03 2.56E+00 1.66E+00
-4.11E-03 2.56E+00 1.60E+00
-1.65E-03 2.56E+00 1.69E+00
5.50E-04 2.56E+00 1.64E+00
3.47E-03 2.56E+00 1.73E+00
5.01E-03 2.56E+00 1.72E+00
9.80E-03 2.56E+00 1.60E+00
1.39E-02 2.56E+00 1.74E+00
1.42E-02 2.56E+00 1.53E+00
1.93E-02 2.56E+00 1.59E+00
9.24E-03 2.56E+00 1.67E+00
-7.32E-04 2.56E+00 1.68E+00
-1.06E-02 2.56E+00 1.68E+00
-2.23E-02 2.56E+00 1.69E+00
-2.41E-02 2.56E+00 1.70E+00
-2.55E-02 2.56E+00 1.71E+00
-2.62E-02 2.56E+00 1.72E+00
-2.51E-02 2.56E+00 1.72E+00
-2.21E-02 2.56E+00 1.73E+00
-1.84E-02 2.56E+00 1.72E+00
-1.49E-02 2.56E+00 1.72E+00
-1.14E-02 2.56E+00 1.71E+00
-7.93E-03 2.56E+00 1.74E+00
-4.25E-03 2.56E+00 1.73E+00
-6.31E-05 2.56E+00 1.68E+00
3.58E-03 2.56E+00 1.67E+00
6.86E-03 2.56E+00 1.70E+00
9.80E-03 2.56E+00 1.66E+00
1.25E-02 2.56E+00 1.64E+00
1.59E-02 2.56E+00 1.67E+00
1.93E-02 2.56E+00 1.71E+00
2.16E-02 2.56E+00 1.62E+00
2.44E-02 2.56E+00 1.57E+00
2.82E-02 2.56E+00 1.62E+00
3.12E-02 2.56E+00 1.66E+00
2.92E-02 2.56E+00 1.58E+00
2.79E-02 2.56E+00 1.59E+00
2.79E-02 2.56E+00 1.57E+00
-3.18E-02 2.56E+00 1.72E+00
-3.17E-02 2.56E+00 1.71E+00
-3.16E-02 2.56E+00 1.69E+00
1.98E-02 2.56E+00 1.62E+00
1.90E-03 2.56E+00 1.67E+00
-7.86E-03 2.56E+00 1.66E+00
-2.07E-02 2.56E+00 1.67E+00
-3.11E-02 2.56E+00 1.67E+00
-3.10E-02 2.56E+00 1.74E+00
-2.88E-02 2.56E+00 1.75E+00
With best regards
0 Comments
Answers (3)
Stephan M. H.
on 15 May 2013
Edited: Stephan M. H.
on 15 May 2013
Hello Mohammad,
if I understand your question correctly, it doesn't make much sense to draw a contour plot for your data, since the y component is always the same. You can't get more info out of this data then a simple plot could show you
If 'D' is your matrix, just do
plot(D(:,1),D(:,3),'*')
best,
Stephan
0 Comments
mohammad pourtousi
on 15 May 2013
1 Comment
Stephan M. H.
on 15 May 2013
I think it would be better if you describe your problem in a general form instead of posting a huge file or matrix. Important would be, e.g., if you know the (x,y) data points or get velocity samples at random locations?
See Also
Categories
Find more on Biotech and Pharmaceutical 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!