ENGG1811 Virtual Lab 2: Matlab
Problem 3C: Walking or not walking – WITHOUT using any loops
For this Problem, you should implement the calculations inProblem 3B WITHOUT using any loops.
You will need to use the var() function in Matlab to calculatevariance. You can look at the documentation on how to use thisfunction.
In order to explain what you need to do, let us consider thesmall example in Problem 3B. Let us start from
ex_0 = [2; 20; 2; 10; 10; 10; 10; 9; 10; 3; 18; 3; 6; 7]
which is a vector considering the total accelerations.
You need to extract all the complete segments:
ex_1 = [2;
PayPal Gateway not configured
PayPal Gateway not configured