# Converting 2D plots into a 3D plot

6 visualizzazioni (ultimi 30 giorni)
Muhammad Arsal Akram il 20 Apr 2020
Risposto: Jyotsna Talluri il 23 Apr 2020
I have total 4 arrays.
waterdepth = [] (10 values)
velocities = [] (corresponding to the 10 values of depths)
time=[] (10 values)
velocities = []=(corresponding to the 10 values of time)
I am able to plot two graphs seperately but I want to show how velocity is changing with both waterdepth and time in a single 3D plot.... How can I plot one?
##### 2 CommentiMostra 1 commento meno recenteNascondi 1 commento meno recente
Muhammad Arsal Akram il 20 Apr 2020
Not really... For a fixed waterdepth I have 10 velocity values at 10 different time points
And at a fixed time point I have 10 different velocity values at 10 different depths
But as said, depths do not correspond to time in any way ...

Accedi per commentare.

### Risposte (1)

Jyotsna Talluri il 23 Apr 2020
As you have 3 vectors waterdepth,time and velocities, you can plot a 3D scatter plot by making use of scatter3 function.
Refer to the documentation of scatter3 function
##### 0 CommentiMostra -1 commenti meno recentiNascondi -1 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Scatter Plots in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by