Hi
I need to plot in 3-D ,the first equation ,and the second equation, then the third equation
after that plot all in one drawing
if any prof. can help me….thanks a lots….
there is my equations:
And this is my matlab :
N = 1000;Q1 = rand(10,N);Q=reshape(Q1,1,[]); % convert matrix to row vector
sum1=0;sum2=0;sum3=0;sum4=0;sum5=0;sum6=0; for j=1:10000 sum1=sum1+1/(A+(G*B*((Q(j))^(G-1)))); sum2=sum2+(Q(j)); sum3=sum3+(G*((Q(j))^(G-1)))/(A+(G*B*((Q(j))^(G-1)))); sum4=sum4+(Q(j))^(G); sum5=sum5+(((G*log(Q(j)))*((Q(j))^(G-1)))+((Q(j))^(G-1)))/(A+(B*G*((Q(j))^(G-1)))); sum6=sum6+((Q(j))^(G))*log(Q(j)); end f(A,B,G)=sum1-sum2; g(A,B,G)=sum3-sum4; h(A,B,G)=B*sum5-B*sum6; plot3d(f(A,B,G)=0,color=red); plot3d(g(A,B,G)=0,color=yellow); plot3d(h(A,B,G)=0,color=blue); display({plotf,plotg,ploth},axes= );
my variable : A,B,G in matlab …INSTEAD OF x, y, z for the 3-D
what I add to this program to plot all the three eqations, in different colors please, and then put them in one drawing .
I write
plot ( .,)
but I dont know what write between the Parentheses.
Best Answer