```Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how do the integration?
Date: Sat, 18 May 2013 15:25:24 -0500
Organization: Aioe.org NNTP Server
Lines: 33
Message-ID: <kn8o3j\$fp3\$1@speranza.aioe.org>
References: <kn8242\$47r\$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: bAAzroW43+d6QzUx/zwEnQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:795782

On 5/18/2013 9:10 AM, ghasem wrote:
> 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)

can you try again, and post valid expression. The above
does not even parse.  is this exp(j*k*z)*cos(theta) or
exp(j*k*z*cos(theta)) ?

Then you say that z is a vector

z= linspace(0,0.7,100);

then later say that

I(z) = is a given vector same length with
z => length(I(z)) = length(z)

May be you can try to write the integral, using normal mathematics
notation. Assume Matlab does not exist. Using just mathematics,
write down the integral you are trying to solve.

If I(z) is supposed to be a vector of numbers, then why not
just say this is a constant C ? or is I(z) a function of z?

If so, what is the definition of this function I(z) ?

--Nasser

```