Question: Problem # 3 After reviewing your work, a few senior engineers are interested in viewing some of the numerical data collected from the results of
Problem #
After reviewing your work, a few senior engineers are interested in viewing some of the numerical data collected from the results of the shock with damping ratio value, For the time range extract the solution data and express it in the form of an matrix of values, where is the number of rows in the matrix. The number of rows will vary depending on the size of your simulation timestep, dt The first column of the matrix should contain the time values and the second column should contain the solutions of the displacement equation.
Tasks
Use indexing, as well as some of MATLAB's builtin functions, to identify the array location of all the values in the time and displacement vectors. Assign a new matrix variable of the form containing the results for the time period and then print the results to the command window.
Things to Think About
The location of the discrete time and solution values will change, depending on the length of each vector, which itself varies depending on the size of dt If you want to find within the time vector, it may correspond to for one value of dt or it could correspond to If you decrease the size of the timestep. Your MATLAB code will have to be robust enough, such that these values can be automatically found, and their indices identified, for any value of dt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
