How can I plot a graph in X,Z axis and Y,Z axis in a same graph?
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    milan harshana
 le 14 Juil 2020
  
    
    
    
    
    Réponse apportée : Ir. Ts. Dr. Kah Yung Yap, CEng (UK)
      
 le 14 Juil 2020
            I have seperate data set for x,z axises and y,z axises. How can I plot a graph in X,Z axis and Y,Z axis in a same graph? It is like a 3D plotting using matlab.
x=1:1:10;
y=1:1:10;
z=1:1:5;
surf(x,z,y,z)
Could someone correct this issue?
1 commentaire
Réponses (1)
  Ir. Ts. Dr. Kah Yung Yap, CEng (UK)
      
 le 14 Juil 2020
        Hi, you can try one of these options:
plot([x(:), y(:), z(:)]);
plot3(x,y,z);
scatter3(x,y,z);
surf(x,y,z);
stem3(x,y,z,'MarkerFaceColor','g');
You may find useful information from these links:
0 commentaires
Voir également
Catégories
				En savoir plus sur Line Plots dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


