Question: I am given a Matlab m-file to load onto Matlab and perform the following Part A: Write a script that will: load the file accdata.mat

I am given a Matlab m-file to load onto Matlab and perform the following

Part A:

Write a script that will:

  1. load the file accdata.mat
  2. find the resultant acceleration value for each sample
  3. plot the y vector and resultant vector on the same graph
  4. calculate and display the amount of time represented by the data

The resultant acceleration data should be stored in a vector of data the same length as x, y, and z

In order to determine the magnitude of the resultant acceleration, you will need to use a 3-dimensional version of the Pythagorean theorem

The data I am given is loaded onto my workspace as three separate vectors, xaccdata, yaccdata and zacdata each with a value of 1x1101 and this graph attached as a pdf

I am given a Matlab m-file to load onto Matlab and perform

Acceleration Data For Participant X 2.5 x-axis y-axis Z-axis resultant 2 1.5 0.5 CO -0.5 IL -2 -2.5 2000 4000 6000 Sample Number 8000 10000 12000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!