From: Markus on 21 Jun 2010 08:53 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
From: Roger Stafford on 21 Jun 2010 15:43 "Markus " <fuer_werbung(a)gmx.de.removeallafterde> wrote in message <hvnnbi$g46$1(a)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
|
Pages: 1 Prev: vec(.) operator for multidimensional array Next: import files |