Filter löschen
Filter löschen

How can I create contour for velocity?

4 Ansichten (letzte 30 Tage)
mohammad pourtousi
mohammad pourtousi am 15 Mai 2013
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

Antworten (3)

Stephan M. H.
Stephan M. H. am 15 Mai 2013
Bearbeitet: Stephan M. H. am 15 Mai 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),'*')
If you still want to do a contour plot look up the contour documentation
best,
Stephan

mohammad pourtousi
mohammad pourtousi am 15 Mai 2013
Thank you Stephan
ACtually this filw is small part of the exact file and the y is changing .let me upload the exat file
  1 Kommentar
Stephan M. H.
Stephan M. H. am 15 Mai 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?

Melden Sie sich an, um zu kommentieren.


mohammad pourtousi
mohammad pourtousi am 15 Mai 2013
Actually the file is so big I can not upload it here. I have to upload the exel file.
anyway I have matrix like 40000*3. each column is related to different value. How can I contour this matrix.
Thanks
  1 Kommentar
mohammad pourtousi
mohammad pourtousi am 15 Mai 2013
I would like to send the excel file to you and get your suggestion for piloting this kind of data. I was wondering if I could have your Email.
Thanking you.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by