Filter löschen
Filter löschen

Create 3D plot out of multiple xy plots

1 Ansicht (letzte 30 Tage)
Rick Verberne
Rick Verberne am 30 Jan. 2019
Bearbeitet: Walter Roberson am 30 Jan. 2019
Dear all,
I'm yet again stuck in matlab. Currently I'm sitting on a bunch of X-Y plots, with x = distance and y = counts. However, this also varies in Z.
At the moment I have 45 plots each with respect to X-Y but for a different Z. The X value is exactly the same for all of the plots. Is there a way I can conveniently have matlab plot all these plots and connect them where the X values are the same?
Best,
Rick
  3 Kommentare
Rick Verberne
Rick Verberne am 30 Jan. 2019
Correct, each x value in a single plot has exactly one corresponding y value.
For every Z the x values are the same but the y value corresponding to that x values can be different. I though it would have been easy to, just like in excel create such a surface plot. But it seems more tricky in Matlab.
Walter Roberson
Walter Roberson am 30 Jan. 2019
Bearbeitet: Walter Roberson am 30 Jan. 2019
Each z corresponds to exactly one x, but each x corresponds to multiple z? The same number of z in each case ? Is length(z) an integer multiple of length(unique(x)) ? So that you could reorder the data into a grid, unique x on one side and the corresponding z on another? Would it be a regular grid?
Would it be practical to show us a scatter3() of the data ?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Line 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