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:
integration of a vector of functions

Subject: integration of a vector of functions

From: Markus

Date: 21 Jun, 2010 12:53:06

Message: 1 of 2

Dear all,

I want to integrate the product of a time depended matrix A(t) and a vector u(t):
y=∫A(t)*u(t)dt. The matrix and the vector are both functions. Unfortunately, quadl does not work since the result of the product is a vector. Which function should I have use instead or is there a way to calculate both equations separately (e.g. At(t)(1,:)*u(t)) ?

Example:
At=@(t)[1,t;2,t^2]
ut=@(t)[t;1]
y=quadl(@(t)At(t)*ut(t),0,2)

Thanks for your help
Markus

Subject: integration of a vector of functions

From: Roger Stafford

Date: 21 Jun, 2010 19:43:21

Message: 2 of 2

"Markus " <fuer_werbung@gmx.de.removeallafterde> wrote in message <hvnnbi$g46$1@fred.mathworks.com>...
> Dear all,
>
> I want to integrate the product of a time depended matrix A(t) and a vector u(t):
> y=∫A(t)*u(t)dt. The matrix and the vector are both functions. Unfortunately, quadl does not work since the result of the product is a vector. Which function should I have use instead or is there a way to calculate both equations separately (e.g. At(t)(1,:)*u(t)) ?
>
> Example:
> At=@(t)[1,t;2,t^2]
> ut=@(t)[t;1]
> y=quadl(@(t)At(t)*ut(t),0,2)
>
> Thanks for your help
> Markus

  Try quadv

Roger Stafford

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