Custom-Written, AI & Plagiarism-Free with Passing "Guaranteed"

money back guartee

Display the integral value calculated for distance, the number of sections used in the numerical integration.

Assignment Brief

EG-264 - MATLAB Coursework

Basic details

You are asked to submit your MATLAB solution to the problems specified below. A professional presentation of your solution is required. This should contain:

  1. A cover page giving your name and your student number and including the signed statement "I confirm that I have not received help from, or given help to, anyone else in constructing the solution to this assignment".
  2. A brief description of the problem and of the process you have followed to produce your solution.
  3. A complete documented listing of your actual MATLAB files (i.e. NOT retyped by you and NO screenshots).
  4. A listing of the actual output from MATLAB giving the answers requested (i.e. NOT retyped by you and NO screenshots).
  5. Appropriate referencing to any publication or web based material that you have used in constructing your solution.

Question 1:

Figure 1 shows the speed (mph) against time(s) graph of a Camaro car accelerating from a standing start. Over 25 seconds the car accelerates to nearly 150mph.

Figure 1: Speed (mph) vs. Time(s) graph of a 2010 Camaro’s data measurements. To reproduce the speed and time data from the image, combine equations (1), (2) and (3) using for loops and conditional statements. When t < 5 s, the speed of the car in mph can be determined using Equation (1): Speed(t) = 0.1553567(t6 ) - 2.0416(t5 ) + 9.1837(t4 ) – 14.829(t3 ) - 1.3703(t2 ) + 32.821(t) - 1.3155 (Eqn. 1) When πŸ“π’” ≤ 𝒕 < πŸπŸ“. πŸ’π’”, the speed of the car in mph can be determined using Equation (2): Speed(t) = 0.003980879(t5 ) – 0.2247(t4 ) + 4.8682(t3 ) – 50.442(t2 ) + 254.67(t) - 430.66 (Eqn. 2) When t ≥ 15.4s, the speed of the car in mph can be determined using Equation (3): Speed(t) = -0.073(t2 ) + 6.1802(t) + 40.423 (Eqn. 3)

To determine the distance travelled by the Camaro, numerical integration can be used on the reproduced speed vs. time data, calculating the area under the curve

Use the composite trapezoidal rule to obtain an approximation of the distance travelled by the Camaro in metres, with a relative error of less than 0.00002%. During the numerical integration calculations, if the relative error is not reached, double the number of separations used over the timespan in the calculations for the following calculation

  1. (i) In the command window, display the integral value calculated for distance, the number of sections used in the numerical integration, and the relative error produced for each looped calculation using ‘fprintf’ and associated commands.
  2. (ii) Produce a single figure with two subplots, (1) showing the speed (m/s) vs. time (t) of the combined speed equations in one plot at a reasonable accuracy, and (2) a cumulative distance (m) graph of the Camaro over time(s) in the second subplot.
  3. (iii) Produce a figure showing the total distance calculated against the number of separations used in each numerical integration calculation; use a logarithmic x-axis scale on the resulting plot.

Question 2:

An undamped system is harmonically excited using an external forcing frequency πœ”, which produces vibration of the system. The displacement of the system over time (x(t)) can be calculated using Equation 4, when using the parameter values detailed in Table 1.

The acting driving frequency πœ” however is unknown.

  1. (i) Use the bisection method to determine an approximation of the value of πœ”, with an absolute error of less than 1 × 10−6 ;whenthe displacement x = 0.0386m, at time t = 4.54s, limiting the useable values of πœ” between: 5.12 < πœ” < 6.45. Display the resulting value of πœ”, and the absolute error obtained.
  2. (ii) Produce a plot of the displacement x(t), between 0 < 𝑑 < 6𝑠, using the driving frequency πœ” calculated in part (i).

Sample Answer

MATLAB Coursework Report – EG-264

Declaration:
“I confirm that I have not received help from, or given help to, anyone else in constructing the solution to this assignment.”

Introduction

This coursework addresses two MATLAB programming tasks related to engineering problems. The first task involves numerically integrating a speed-time graph for a Camaro car using the composite trapezoidal rule to estimate distance travelled. The second task involves solving for an unknown driving frequency (ω) using the bisection method, applied to a harmonic vibration system.

Question 1 – Camaro Speed and Distance Analysis

Problem Description

The speed-time behaviour of a Camaro over 25 seconds is described using three piecewise equations. The aim is to calculate the distance travelled by numerically integrating the speed data with very high accuracy (relative error < 0.00002%). This is achieved using composite trapezoidal integration. Additionally, graphical plots of speed vs. time, cumulative distance, and distance vs. separations are required.

Approach Summary

  1. Define the time vector and apply conditional logic to compute speed using the appropriate equation in each time range.

  2. Convert speed from mph to m/s.

  3. Use a loop to apply the trapezoidal rule, increasing the number of sections (n) until the relative error goal is met.

  4. In each loop, fprintf is used to display:

    • Current approximation of distance,

    • Number of sections used,

    • Relative error.

  5. Generate the required plots:

    • Speed vs. time and cumulative distance.

    • Distance vs. number of separations (logarithmic x-axis).

Question 2 – Harmonic Vibration and Bisection Method

Problem Description

An undamped harmonic system`s displacement equation is provided. The driving frequency ω is unknown, but the displacement at a specific time is known. Using the bisection method, we need to find ω to a precision of absolute error < 1 × 10⁻⁢. After that, we plot x(t) over 0–6 seconds using the calculated ω.

Approach Summary

  1. Define the displacement function x(t, ω).

  2. Apply the bisection method between ω = 5.12 and 6.45, with stopping condition |error| < 1e-6.

  3. Display the resulting value of ω and error.

  4. Use ω to calculate x(t) for t = 0 to 6 seconds and plot x vs. t.

Continued...


100% Plagiarism Free & Custom Written,
tailored to your instructions
paypal checkout
no ai guaranteed

Assignment Experts UK delivers 100% original, custom-written work. We don't use paraphrasing tools, AI content generators like ChatGPT, or any writing software. All content is self-written by our expert writers and guaranteed plagiarism-free.

Discover more


International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

UK Registered Company # 11483120


100% Pass Guaranteed

STILL NOT CONVINCED?

Check out samples from our Academic Writing Service, created by our writers to showcase the high-quality work you can expect!

View Our Samples

✨ Your Assignment Rescue Is Here!

Get your assignments written by UK’s top professionals and enjoy 35% OFF β€” hurry, this deal won’t last long!

Offer ends in: 00:00:00
Order Now
We're Open