Home / Expert Answers / Mechanical Engineering / 1-in-this-course-we-often-need-to-generate-plots-using-matlab-for-practice-create-an-excel-spre-pa579

(Solved): 1. In this course, we often need to generate plots using MATLAB. For practice, create an Excel spre ...




1. In this course, we often need to generate plots using MATLAB. For practice, create an Excel spreadsheet with two columns,
1. In this course, we often need to generate plots using MATLAB. For practice, create an Excel spreadsheet with two columns, \( t \) (time in seconds) and \( g(t) \) (a function of \( t \), measured in volts). Let \( t \) range from 0 to \( 1.0 \mathrm{~s} \) with a time increment of \( 0.01 \mathrm{~s} \) ( 101 rows of data). The function is \[ g(t)=[1.8 \sin (30 \pi t)-0.80] \text { volts } \] (a) Create columns for \( \mathrm{t} \) and \( \mathrm{g}(\mathrm{t}) \) and plot \( \mathrm{g}(\mathrm{t}) \) as a function of \( \mathrm{t} \) for \( \mathrm{t}=0 \) to \( 1.0 \mathrm{~s} \). Make the plot nice looking, with a white (not gray) background, gridlines, labels for the horizontal and vertical axes, and minor tick marks on the axes. The timeaxis range must be 0 to \( 1.0 \mathrm{~s} \), and the \( \mathrm{g}(\mathrm{t}) \)-axis range must be appropriate for the function. Use both a smooth line and symbols to represent the function. Make sure your name is on the top of the spreadsheet. Hand in both the first page of the spreadsheet and the plot, which can be on the same page to save paper. (b) Count the number of wavelengths of the function in this time interval, and calculate the period (T) and frequency (f) of the function. Compare to the frequency predicted by the above equation. (c) What is the peak-to-peak amplitude of the function? (d) What is the radian frequency \( (\omega) \) of the function? What is the DC offset of the function?


We have an Answer from Expert

View Expert Answer

Expert Answer


You can simply read data in an Excel file using the r
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe