For Programmers: Free Programming Magazines  


Home > Archive > Matlab > May 2005 > How to integrate a discrete sequence









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to integrate a discrete sequence
jinlei

2005-05-29, 3:58 pm

Hello

How to integrate a discrete sequence if we can't find out the
equation of the sequence.It's a onedimensional vector.

Any suggestions will be appreciated!

Thanks!
PB

2005-05-29, 3:58 pm

jinlei wrote:
>
>
> Hello
>
> How to integrate a discrete sequence if we can't find out the
> equation of the sequence.It's a onedimensional vector.
>
> Any suggestions will be appreciated!
>
> Thanks!


Hi jinlei!

You can use the trapz() function. Read help trapz. Post back if you
have questions.

HTH

PB
cyril

2005-05-30, 9:00 am

Hello,

Why not use numericalk integration techniques?

GRTNX cyril
PB

2005-05-30, 9:00 am

On Mon, 30 May 2005 04:41:36 -0400 in message
<news:ef076da.1@webx.raydaftYaTP>, cyril wrote:

> Hello,
>
> Why not use numericalk integration techniques?
>
> GRTNX cyril


So the trapezoidal integration is not a numerical integration technique?

/PB
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
cyril

2005-05-31, 9:14 am

Hello,

The trapezodal rule is only one of all the possible ways to numerical
solve an itegral. Thus you were right!
I only tried to hint in other directions ifmore accuracy is needed.

GRTNx cyril
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com