How to plot one variable (density for example) at a 2D contour graph ( time and depth for example)?
9 views (last 30 days)
Show older comments
I have the following array (761049x3 double), with the columns representing (time,depth,density). I would like to plot a graph of the density(z) ranging in time(x) and depth(y) in a 2D visualization. I tried many plot's command but none of them worked. Can someone help me with that?
Thanks for the attention,
Gustavo
0 Comments
Accepted Answer
dpb
on 21 Mar 2015
Look at
doc meshgrid
for an example of how surf and friends expect the data. Depending on the arrangement of the independent variables in your array you may have to do some rearranging to get them in the proper sequence; we've no information to work from on that.
4 Comments
dpb
on 24 Mar 2015
Well, kewl!!! I wasn't sure but was the bestest starting point I could see from Matlab. How about pasting a copy of the image Matlab generated just to see?
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots 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!