needhelp on cross-section plot

조회 수: 3 (최근 30일)
Ahmed
Ahmed 2011년 3월 7일
Hello everybody I have 3 array but in different size represent a physical property at individual depths. at depth 10m size(L1)=1,100 at depth 20m size(L2)=1,91 at depth 30m size(L3)=1,79
How can I plot contour or any 2-D graph represent this section because the lines don't has same length.(100,91,79)

답변 (3개)

Walter Roberson
Walter Roberson 2011년 3월 7일
A contour graph requires x, y, and z coordinates for each point. What you describe has only a z coordinate and one other coordinate.
What does it mean for L1 to have a length of 100 but only know only that z=10 for all of L1?
If you had said that size(L1)=2,100 then we might have grounds to suspect that you had x and y coordinates, but you have not given us any hope of that.

Ahmed
Ahmed 2011년 3월 7일
Dear Walter Roberson all lines (L1,L2,L3) has same interval (5m) and each line in different level 5m,10m,15m respectively. Example: L1=[2 43 6 9 65 9 0 7 5 43 34 6] L2=[45 65 7 5 9 9 4 7 0 8 5] L3=[3 5 6 7 8 9 99]
I want to plot cross-section (isosceles triangle shape)
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 3월 7일
The fact that the vectors are different lengths: does that just mean that measurements were not done for the corresponding positions in the other vectors, or does it mean that you hit a surface at those positions?
This makes a difference if one is to interpolate with the existing data: if one just did not happen to take samples at those places, then one can generate a smooth graph that goes through whatever space is necessary to reach the next spot over, but if you were probing as far as possible into holes, then the you might need to assume steep bounds.
How do your L1, L2, and L3 align with each other? Do they all start at the same place just extend different distances, or do they end in the same place, or are they centered at the same place? The interval is constant at 5m, but do they have the same alignment within that 5m?
Whether generated or otherwise, we need another coordinate vector corresponding to each of L1, L2, L3. If we say that L1 represents a Y coordinate, then we need L1x for each position in L1, and L2x for each position in L2, and so on.

댓글을 달려면 로그인하십시오.


Millo Marin
Millo Marin 2011년 9월 8일
I have the same problem. I have a cross section of an oceanographic cruise, and I would like to produce a cross section of oceanographic variables, like temperature and density. I have the X,Y data (longitude and depth, respectivly), and Z data (the oceanographic variable, i.e. temperature, salinity, O2, etc). The vectors at diferent stations are diferent in length, because some of the statios were made in deeper waters than others. Need help, please. Thank you.

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by