Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
maryam
Posts:
17
Registered:
12/25/12
|
|
Re: integral
Posted:
Dec 31, 2012 1:19 PM
|
|
"Roger Stafford" wrote in message <kbsfpq$g2j$1@newscl01ah.mathworks.com>... > "maryam " <raha_smm@yahoo.com> wrote in message <kbs5hu$dgc$1@newscl01ah.mathworks.com>... > > Hi dear all > > The f( t,f ) function generate a m-by-n matrix, x axis of matrix denotes time domain and y axis denotes frequency domain. > > I would like know how is calculated the integral in every column, b=integral f(t,f) from ?f/2 to f/2, the result be equal to the b 1-by-n vector. > > Thanks & best regards > - - - - - - - - - - - - > Matlab's 'trapz' function performs integration on discretely-defined data. There are also File Exchange routines that use higher order polynomial approximations for this purpose. > > However, you have said, "The f( t,f ) function generate a m-by-n matrix, x axis of matrix denotes time domain and y axis denotes frequency domain." Do you mean that the integer values 1:n are the actual time values and 1:m the frequency values? That seems unlikely to me. If this is not so, then how are these quantities defined? You of course need to know this to perform an integration on your function. > > Roger Stafford --------------------- Dear Roger Stafford thanks a lot for your reply, my problem is solved with 'trapz' function. best regards
|
|
|
|