Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Elements of

Matlab and Simulink


Lecture 2 - Exercises

Emanuele Ruffaldi

7 Aprile 2009
Exercise

• Take provided data (Data2.zip)


• Data set is a motion capture data of 1500 x 61 points each as triplets XYZ
in absolute reference frame
• Load appropriately
• Show decomposition using multidimensional array, cell array and struct
• Visualize and Try to animate it
• Compute Center of Mass and offset all frames to respective to COM
• Show points and overlapped the motion of COM
• Compute Speed of Points
• Show statistics of motions of each point along time
• Decompose sequence of frames in segment based on change of mean speed of
points
• Store each segment in files using struct
• Useful commands:
• repmat
• reshape
• plot3,scatter3
Result

You might also like