How I plot this ?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Hossein Alishahi
 am 4 Mär. 2021
  
    
    
    
    
    Kommentiert: the cyclist
      
      
 am 6 Mär. 2021
            Please help me to plot this equation
Thanks in advance
log((1+alpha1*x/(1+alpha2*y))) -gamma*log((1+beta1*x/(1+beta2*y)));
alpha1=0.1; alpha2=0.2; beta1=0.2; beta2=1; gamma=1.3;
0 Kommentare
Akzeptierte Antwort
  the cyclist
      
      
 am 4 Mär. 2021
        Here is one way:
alpha1=0.1; alpha2=0.2; beta1=0.2; beta2=1; gamma=1.3;
x = 0 : 0.1 : 10;
y = 0 : 0.1 : 10;
[xx,yy] = meshgrid(x,y);
f = log((1+alpha1*xx./(1+alpha2*yy))) -gamma*log((1+beta1*xx./(1+beta2*yy)));
figure
surf(x,y,f)
2 Kommentare
  the cyclist
      
      
 am 4 Mär. 2021
				Answering the comment you placed here, then deleted.
alpha1=0.1; alpha2=0.2; beta1=0.2; beta2=1; gamma=1.3;
x = 0 : 0.1 : 10;
y = 0 : 0.1 : 10;
[xx,yy] = meshgrid(x,y);
f = zeros(size(xx));
figure
surf(x,y,f)
(I saw that you also emailed me, but I don't answer via email, so better to post here.)
Weitere Antworten (1)
  the cyclist
      
      
 am 4 Mär. 2021
        
      Bearbeitet: the cyclist
      
      
 am 4 Mär. 2021
  
      alpha1=0.1; alpha2=0.2; beta1=0.2; beta2=1; gamma=1.3;
f = @(x,y) log((1+alpha1*x./(1+alpha2*y))) -gamma*log((1+beta1*x./(1+beta2*y)));
figure
fimplicit(f,[0 100 0 10]) % Chose these plot limits after a little experimentation
2 Kommentare
  the cyclist
      
      
 am 6 Mär. 2021
				You might want to post a new question, so more people see this. I don't see the answer right away, and I don't think I'm going to get a chance to think about it more for a while.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





