- Details
- Parent Category: Engineering Assignments' Solutions

# We Helped With This Electrical Engineering Assignment: Have A Similar One?

Category | Engineering |
---|---|

Subject | Electrical Engineering |

Difficulty | Undergraduate |

Status | Solved |

More Info | Electrical Engineering Assignment Help |

## Assignment Description

**EGN
1001 – Introduction to Engineering **

**Homework #5 – Matlab Plotting & Accuracy/Precision **

**Assigned:**
February 11, 2019 **Due:** February 18, 2019

**1)**** Matlab Assignment: **

a. Using the (X,Y) data collected from your Launcher, generate the following plots using Matlab:

i. 2D Line plots (you may find the command plot useful)

1. X vs. Launch #

2. Y vs. Launch # ii. 2D Bar plots (you may find the command bar useful)

1. X vs. Launch #

2. Y vs. Launch # iii. 2D
Scatter plot, or plotting Y vs. X __without__ connecting the points (see the
linestyle options of the plot command)

b. Using the (X,Y) data collected from your Launcher, calculate the following in Matlab (you may find the commands mean and std useful):

i. The mean (average) and standard deviation (spread) of the X measurements alone

ii. The mean (average) and standard deviation (spread) of the Y measurements alone

c. A file called FitLauncherData.m is provided with this assignment. Use MATLAB’s help command to determine appropriate use of the function for your specific data.^{[1]}

i. Successful use of the function will render four plots into a single figure window, one of them being a 3D “bell curve” approximation of your 2D data. Select the “Rotate 3D” tool in the

figure window and then drag the mouse over the bell curve to

view it from the top, aligning its x and y axes perfectly with the x and y axes of the original scatter plot. Explain the elliptical fits of your data implied by the 3D bell curve in terms of the means and standard deviations calculated in part (b). What additional information is provided by the 3D bell curve that is not apparent from the curves that approximate the x data alone and the y data alone?

ii. Use the function to also compute the so-called “likelihoods” of
your data. Then, augment the rendered 3D bell curve to show your (X,Y) data
plotted along the bell’s surface. *Hint:* Employ MATLAB’s plot3 function (__without__ connecting the points), but within hold commands so that the bell curve is not overwritten e.g., at the MATLAB prompt,
type

hold on; plot3(<insert appropriate arguments>); hold off; d. Deliverable:

i. A document with a paragraph commenting on the accuracy and the precision of your launcher (use parts (a), (b) and (c) from above to justify your conclusions)

ii. Include all plots generated above, each with axes labeled and an appropriate title (e.g., employ the xlabel, ylabel and title commands), in your document.

iii. Copy and paste your command window session from Matlab and include it with the report

(please format this text for easier reading, also removing commands that generated errors).

e. Select one group member’s graphs and comments to be printed and added to your lab report.

[1] You are welcome to inspect the code inside this function but appreciate that it is beyond our course’s scope both mathematically and MATLAB-wise. Its purpose here is only to stimulate thought on the extent to which your launcher data is appropriate for ``bell curve” assumptions (called the normal, or Gaussian, distribution in mathematics, in which ellipsoids plays an important role).