needhelp on cross-section plot
3 views (last 30 days)
Show older comments
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)
0 Comments
Answers (3)
Walter Roberson
on 7 Mar 2011
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.
0 Comments
Ahmed
on 7 Mar 2011
1 Comment
Walter Roberson
on 7 Mar 2011
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
on 8 Sep 2011
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.
0 Comments
See Also
Categories
Find more on Oceanography and Hydrology 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!