
how to plot multiple 3d on one graph ?
    28 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Teerapong Poltue
 il 5 Nov 2020
  
    
    
    
    
    Commentato: Richard Summers
 il 15 Ott 2021
            I've try hold on but that isn't work. It turns out to be 2d plot
interval = [-5:0.1:5];
x = -5:0.1:5;
y = -5:0.1:5; 
[X,Y] = meshgrid(x,y);
z1 = acos((cos(interval)+cos((interval).')));
z2 = acos(-(cos(interval)+cos((interval).')));
figure(1);
plot3(X,Y,z2)
figure(2);
plot3(X,Y,z1)
0 Commenti
Risposta accettata
  Ameer Hamza
      
      
 il 5 Nov 2020
        Following code works fine
interval = [-5:0.1:5];
x = -5:0.1:5;
y = -5:0.1:5; 
[X,Y] = meshgrid(x,y);
z1 = acos((cos(interval)+cos((interval).')));
z2 = acos(-(cos(interval)+cos((interval).')));
figure(1);
plot3(X,Y,z2)
hold on
plot3(X,Y,z1)

3 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su 2-D and 3-D 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!


