I need help with this MATLAB code Thank you Let a denote the leftmost digit of y
ID: 2083946 • Letter: I
Question
I need help with this MATLAB code
Thank you
Let a denote the leftmost digit of your student ID number. Suppose x (t) = (1 - (t/4)^2)^a/5 (u (t + 4) - u(t - 4)) and y(t) = cos((a + 1)t)(u(t +4) - u(t - 4)). 1. Using a sampling time of 0.01, determine approximations to E_x and E_y 2. Using a sampling time of 0.01, determine approximations to R_x, y and MSE_x, y. 3. The accuracy of the approximations increases as the sampling time decreases. (The calculation also becomes slower and uses more memory because more terms are required, so there is a tradeoff between accuracy and time/complexity.) Recalculate E_x and E_y if the sampling time is 0.1. Assuming the answers to Part 1 are accurate, determine the percentage error as the absolute value of the difference of the two values divided by the value with sampling 0.01 times 100%. 4. Recalculate R_x, y and MSE_x, y using a sampling time of 0.1 Also determine the percentage error assuming the answers to Part 2 are accurate.Explanation / Answer
Ans-
I used the resources below for an online course which was intended to serve as an introduction to Matlab. The sessions were set up to include time for students to try problems, so the slides contain numerous example problems. There also are a set of homework problems which are meant to be done outside of "class."
Overview
Text
Slides
Introduction
Slides
Importing Data (Slides)
Importing Binary Data (Slides)
falling.m
ForSurfPlot.m
gaslaws.m
expplots.m
distanceVsTime.m
plots.m
User-Defined Functions
Slides
sumofcubes.m
fcnscripts.m
example.m
fcnpractice.m
Curve Fitting
Slides
uspop.m
nonlinfit.m
fitscripts.m
fitpractice.m
Linear Algebraic Equations
Slides
hilbert.m
linsyspractice.m
piping.m
Minimizing Functions
planets.m
minmaxpractice.m
planetmovie.m
extrema.m
Nonlinear Algebraic Equations (Root Finding)
Slides
RootPractice.m
Systems of Nonlinear Algebraic Equations
Slides
solveeqs.m
Numerical Integration (Quadrature)
Slides
quadpractice.m
plotcar.m
Interpolation
Slides
hotwater.m
fender.m
handdata.m
interppractice.m
Signal Processing
Slides
fftscripts.m
positiveFFT.m
positiveFFT_zero_padding.m
touchtone.mat
shuttle.jpg
Differential Equations (Initial Value)
Slides
odeexample.m
insects.m
ode2ndOrder.m
odescripts.m
odepractice.m
Differential Equations (Boundary Value)
bvpexample.m
bvpscripts.m
bvpskeleton.m
bvppractice.m
Eigenvalues of Differential Equations
eigexample.m
Parabolic Partial Differential Equations
parabolic.m
parabolicConvection.m
Monte Carlo Analysis
Slides
montecarloscripts.m
beam.m
vegas.m
randomwalk.m
montecarlopractice.m
blackjackstay.m
Matlab Toolboxes
Slides
Matlab ToolBox Site
Comparing Matlab to Excel
Slides
Sample Spreadsheet with VBA
Homework Problems
Set 1 (Solution)
Set 2 (Solution)
Set 3 (Solution)
Set 4 (Solution)
Set 5 (Solution)