Salut:
je veux tracer une courbe d'un équation à 3 inconnus sur Matlab.
Pe1=0.4954-(0.0001*x1)+(0.0017*x2)+(0.001 1*x3)-(0.0001*x1*x2)-(0.0001*x1*x3)-(0.0039*x2*x3)
avec x1 appartient à [-6 6]
x2 appartient à [1 100]
x3 appartient à [0 0.9]
Programme:
for x1=-6:1:6
for x2=1:10:100
for x3=0:0.1:0.9
Pe1=0.4954-(0.0001*x1)+(0.0017*x2)+(0.001 1*x3)-(0.0001*x1*x2)-(0.0001*x1*x3)-(0.0039*x2*x3)
if (Pe1>0)&&(Pe1<=1)
[X,Y]=meshgrid(-6:1:6,1:10:100);
Pe1=Z
Z=peaks (X,Y);
surf(X,Y,Z);
end
end;
end;
end;
merci
je veux tracer une courbe d'un équation à 3 inconnus sur Matlab.
Pe1=0.4954-(0.0001*x1)+(0.0017*x2)+(0.001 1*x3)-(0.0001*x1*x2)-(0.0001*x1*x3)-(0.0039*x2*x3)
avec x1 appartient à [-6 6]
x2 appartient à [1 100]
x3 appartient à [0 0.9]
Programme:
for x1=-6:1:6
for x2=1:10:100
for x3=0:0.1:0.9
Pe1=0.4954-(0.0001*x1)+(0.0017*x2)+(0.001 1*x3)-(0.0001*x1*x2)-(0.0001*x1*x3)-(0.0039*x2*x3)
if (Pe1>0)&&(Pe1<=1)
[X,Y]=meshgrid(-6:1:6,1:10:100);
Pe1=Z
Z=peaks (X,Y);
surf(X,Y,Z);
end
end;
end;
end;
merci
via Forum FS Generation http://forums.futura-sciences.com/programmation-langages-algorithmique/611765-tracage-dune-courbe-3d-d-un-equation-a-3-inconnus-matlab.html
Aucun commentaire:
Enregistrer un commentaire