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: how do the integration?
Replies: 2   Last Post: May 18, 2013 7:57 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ghasem

Posts: 95
Registered: 4/13/13
how do the integration?
Posted: May 18, 2013 10:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi.
I have a simple question about integral.
I have to calculate following integral and next plot it versus theta.my function is:
f1 = I(z)*sin(theta)*exp(jk*z*cos(theta)
f2 = integral ( f1 , dz)
where:
lower limit of integral : z=0
upper limit of integral : z = 0.7
z= linspace(0,0.7,100);
theta = linspace(0,2*pi,360);
k = a given constant.
I(z) = is a given vector same length with z => length(I(z)) = length(z)
NOW:
I have to plot "f2(theta)" versus "theta" in a polar diagram.
How can I do it?
I used from " f2 = trapz(z,f1)" for integration and next plot "f2" versus "theta".
is there any better method?
thanks...



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.