Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please write in as a matlab function. The data metioned in the background sectio

ID: 3591264 • Letter: P

Question

Please write in as a matlab function. The data metioned in the background section have 10 datas namely 'subject 1 left' and 'subject 1 right' up until subeject 5 left and right. I have attached a photo of data name and the data itself. we have to consider left and right as a single subject although they both are different datas. the fomat of each data looks like the table shown in background. Hope you will explain in details. Thanks

Background In biomechanics, practitioners are interested in measuring the forces involved during ambulation (movement). This is called kinetics - the study of movement and the forces involved in producing it. These forces are usually measured using a force plate as illustrated in Figure 1 Force plate Figure 1: Experimental Set-up to measure forces involved during walking A force plate takes advantage of Newton's third law of motion. Consider a three-dimensional coordinate system X, Y, and Z (Figure 1). When we step on the ground, we produce vectors of forces in all three directions. The ground reaction force with the largest magnitude on our body is the vertical ground reach force (VGRF), which acts along the Z direction. All other ground reaction forces (along other directions) can be estimated from the VGRF. In biomechanics, the shape and characteristics of the VGRF graph is frequently examined because of its importance. In the Data folder, you will find data files for 5 subjects. Each subject will have a left foot ground reaction force measurement and a right foot ground reaction force measurement. The files are named accordingly. The data in the files are arranged in the following columns: Time (s) Fx (N) Time (s) Fy (N) Time (s) Fz (N)

Explanation / Answer

#!/usr/bin/env python3 # life.py -- A turtle-based version of Conway's Game of Life. # # An empty board will be displayed, and the following commands are available: # E : Erase the board # R : Fill the board randomly # S : Step for a single generation # C : Update continuously until a key is struck # Q : Quit # Cursor keys : Move the cursor around the board # Space or Enter : Toggle the contents of the cursor's position # import sys import turtle import random CELL_SIZE = 10 # Measured in pixels class LifeBoard: """Encapsulates a Life board Attributes: xsize, ysize : horizontal and vertical size of the board state : set containing (x,y) coordinates for live cells. Methods: display(update_board) -- Display the state of the board on-screen. erase() -- clear the entire board makeRandom() -- fill the board randomly set(x,y) -- set the given cell to Live; doesn't refresh the screen toggle(x,y) -- change the given cell from live to dead, or vice versa, and refresh the screen display """ def __init__(self, xsize, ysize): """Create a new LifeBoard instance. scr -- curses screen object to use for display char -- character used to render live cells (default: '*') """ self.state = set() self.xsize, self.ysize = xsize, ysize def is_legal(self, x, y): "Returns true if the x,y coordinates are legal for this board." return (0