Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: plot a functiontha inluce ellipticF
Replies: 0

 george veropoulos Posts: 45 Registered: 6/26/10
plot a functiontha inluce ellipticF
Posted: Jan 17, 2014 1:15 PM

Dear friends

I have definethe function

function y=f_xi(x)
global a1
global a2
global E0max
u=min(x./sqrt(a1),E0max);
%u=E0max;
za=x./sqrt(a1);
zb=x./sqrt(a2);
k=asin((za./u).*sqrt((u.^2-zb.^2)./(za.^2-zb.^2)));
q=sqrt(za.^2-zb.^2)./za;
Dnorm=2./(pi.*E0max.*sqrt(a2));

y=abs(Dnorm.*ellipticF(k,q));

i awould like the plot ot f_xi in a range of value y=[ymin ymax]
i use the ploy(y, f_xi(y))
but the matlab produce output message

Error in MuPAD command: One argument must be a scalar.

Error in sym/privBinaryOp (line 1693)

Error in sym/ellipticF (line 523)
Y = privBinaryOp(PHI, X, 'symobj::applySpecialFunction', 'ellipticF');

Error in ellipticF (line 10)
Y=doubleOrInf(ellipticF(sym(PHI), sym(X)));

Error in f_xi (line 13)
y=abs(Dnorm.*ellipticF(k,q));

Error in main_distr (line 99)
plot(y, f_xi(y)./g_norm)

pany suggestion