3D Scatter with different Z axis vector length
Ältere Kommentare anzeigen
i have x and y data of size (100,1), and this data is for a specific number
x = lhsdesign(100,2);
R = 1000:1000:6000;
scatter3(x(:,1),x(:,2),R)
now i want to plot this in 3d scatter. please guide.
it is just like for each R there is an 100 size vector of x and y.
10 Kommentare
Haris Hameed
am 6 Okt. 2020
Adam Danz
am 6 Okt. 2020
How should 6 values of R be mapped onto 100 values of x and y?
You probably just need to use repelem or repmat but it's unclear how the R values should be assigned.
Haris Hameed
am 6 Okt. 2020
Adam Danz
am 6 Okt. 2020
Sure, but what defines the layers?
I know what x is. I don't know what z should be and I don't know what you want to do with R.
Haris Hameed
am 7 Okt. 2020
Adam Danz
am 7 Okt. 2020
"R is the value at which these samples calculated"
That's where my understanding falls off a cliff. How are 100 random numbers calculated from 6 R values?
If you want a 3D plot, each (x,y) value needs a z value and it's unclear what those z values should be. We need 100 of them.
How should the 100 (x,y) values be distributed across 6 layers?
Haris Hameed
am 7 Okt. 2020
Adam Danz
am 7 Okt. 2020
How do I know what section x(5,:) comes from, for example? What about x(92,:) - what section/level/R is that from?
Haris Hameed
am 7 Okt. 2020
Adam Danz
am 7 Okt. 2020
ah.... there we go. Check back in a bit.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Scatter Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

