Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
integral

Subject: integral

From: maryam

Date: 31 Dec, 2012 13:56:15

Message: 1 of 3

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

Subject: integral

From: Roger Stafford

Date: 31 Dec, 2012 16:51:06

Message: 2 of 3

"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

Subject: integral

From: maryam

Date: 31 Dec, 2012 18:19:12

Message: 3 of 3

"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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us