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 #3
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, =0.5. For the time range 1.0t1.2s, extract the solution data and express it in the form of an m2 matrix of values, where m is the number of rows in the matrix. The number of rows will vary depending on the size of your simulation time-step, 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 built-in functions, to identify the array location of all the values in the time and displacement vectors. Assign a new matrix variable of the form m2, containing the results for the time period 1.0t1.2s, 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 t=1s, within the time vector, it may correspond to t(4), for one value of dt , or it could correspond to t(44), If you decrease the size of the time-step. 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 .
Problem # 3 After reviewing your work, a few

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 Programming Questions!