Converting 2D plots into a 3D plot
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Muhammad Arsal Akram
 el 20 de Abr. de 2020
  
    
    
    
    
    Respondida: Jyotsna Talluri
    
 el 23 de Abr. de 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 comentarios
  Tommy
      
 el 20 de Abr. de 2020
				Do the values in waterdepth correspond in any way to the values in time?
Respuestas (1)
  Jyotsna Talluri
    
 el 23 de Abr. de 2020
        As you have 3 vectors waterdepth,time and velocities, you can plot a 3D scatter plot by making use of scatter3 function.
0 comentarios
Ver también
Categorías
				Más información sobre 2-D and 3-D Plots 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!