The Math Forum

Search All of the Math Forum:

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

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

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

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 ]

Posts: 118
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

I have a simple question about integral.
I have to calculate following integral and next plot it versus function is:
f1 = I(z)*sin(theta)*exp(jk*z*cos(theta)
f2 = integral ( f1 , dz)
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)
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?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.