Click here to Skip to main content
15,748,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to draw a two-variable function from X and Y as with below m-file:
it is under a double integral and there are some errors.
Does any body help me????

syms z h tetha0 tetha x y;
tetha = pi/4;
n = [h*cos(tetha)./sin(tetha); h*abs(cos(tetha)); 0];           %3*1 matrix
ft = ((tetha - pi/2)./sin(tetha)).^4;
Rt = [cos(tetha) -sin(tetha); sin(tetha) cos(tetha)];
zt = [cos(tetha0) -sin(tetha0); sin(tetha0) cos(tetha0)];
lt = [x;y];


h = 4;
tetha0 = 0;


lambda = ft.*(Rt*zt*lt);                                     %result a 2*1 matrix
lm = [lambda;0];                                                %result a 3*1 mtrix
integrand = (cross(lm,n));
PhiHat = @(X,Y)(dblquad(integrand,0,X,0,Y));

Updated 4-May-12 22:45pm
Richard MacCutchan 5-May-12 7:59am    
and there are some errors.
And you expect people to guess what they are?
Sergey Alexandrovich Kryukov 5-May-12 22:53pm    
...therefore, a vote of 1.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900