needhelp on cross-section plot

3 visualizaciones (últimos 30 días)
Ahmed
Ahmed el 7 de Mzo. de 2011
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)

Respuestas (3)

Walter Roberson
Walter Roberson el 7 de Mzo. de 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.

Ahmed
Ahmed el 7 de Mzo. de 2011
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 comentario
Walter Roberson
Walter Roberson el 7 de Mzo. de 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.

Iniciar sesión para comentar.


Millo Marin
Millo Marin el 8 de Sept. de 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.

Categorías

Más información sobre Oceanography and Hydrology en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by