How to make 3D plot?
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Robert  Flores
 am 29 Sep. 2019
  
    
    
    
    
    Beantwortet: Walter Roberson
      
      
 am 29 Sep. 2019
            Hello, 
I am trying to make a 3D plot of the function j, that has an input of u1, u2. I would like to plot the function such that I do not need to make an assignment to either u1 or u2. I have tried to make u1, u2, vectors and then plot the function using the surf function. However, I have been unsccessful so far. If anyone can help me, it will be greatly appreciated, thank you. 
Sincerely, 
Robert 
CODE: 
clc, clear, close all 
[u1,u2] = meshgrid(-2:.2:2); 
syms u1 u2 
j = @(u1,u2) (u1^2+3*u1-4)*(u2^2-u2+6);
surf(u1,u2,j)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

