From: Takis on
Nathan <ngreco32(a)gmail.com> wrote in message <a13fb8b5-95cd-4b53-9c0e-b1d606062018(a)15g2000yqi.googlegroups.com>...
> On Feb 24, 3:30 pm, "Takis " <dts...(a)remove.this.vip.gr> wrote:
> > ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <270e62f8-5a36-4982-9296-621ad4574...(a)z11g2000yqz.googlegroups.com>...
> > > And what kind of data do you want to be in the "Output" argument?
> >
> > Thanks a lot for your reply!! I would like to be a 438 x 4 vector!!
> >
> > Time X Y Z
>
> If you just want your Output variable to contain Time X Y Z, then you
> can simple do this (assuming you know X, Y, and Z, and assuming A is a
> structure with time, pos, Vel, and F as arrays within this structure)
>
> Output = [A.time X Y Z]
>
> If this doesn't work for you, could you please be more specific as to
> what you are looking for?
> Why do you want a function to go through your data row by row? What is
> the purpose for that?
>
> -Nathan

Sorry for i wasn't clear previously!! (moreover i copied the wrong array)

The Vector X Y Z contains the position of a point P1 in the local coordinate system of a moving rigid body at different times.

The Array A contains the position of the axes origin, the orientation of the axes and the position of the centre of mass of the moving body relative to the global coordinate systeme at different times.

A=time: [438x1 double]
position: [438x3 double]
orientation: [438x3 double]
Centre of Mass position Vs time : [438x4 double]

The purpose of the function is to transform the coordinates of the point P1 from the local to the global coordinate system.

Global_P1=transform ([X Y Z],A)

Global_P1= Time New_X New_Y New_Z

I hope that this is more clear!

Many thanks!!