Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: plot a functiontha inluce ellipticF
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
george veropoulos

Posts: 45
Registered: 6/26/10
plot a functiontha inluce ellipticF
Posted: Jan 17, 2014 1:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 using mupadmex
Error in MuPAD command: One argument must be a scalar.

Error in sym/privBinaryOp (line 1693)
Csym = mupadmex(op,args{1}.s, args{2}.s, varargin{:});

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

thank you in advance

george



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.