Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I do not know how to figure out MATLAB yet and this needs to be turned in tomorr

ID: 1923289 • Letter: I

Question

I do not know how to figure out MATLAB yet and this needs to be turned in tomorrow!
Derivative and finite difference
Let y(t) = dx(t)/dt, where x(t) is the signal in problem 2. Find y(t) analytically and determine a value of T’s for which delta(change)[x(nTs)]/ Ts = y(nTs) (consider Ts = 0.1 and Ts = 0.01). Use MATLAB function diff to compute the finite difference. Plot the finite difference in the range [0, 1] and compare it with the actual derivative y(t) in that range. Explain your results for the given values of Ts.

Explanation / Answer

Here is an example for setting up your code using a cosine function: >> x =cos(t); >> t = [0:.01:1]; >> x =cos(t); >> y1 = -sin(t); >> plot(t,y1); >> y2 = diff(x)/.01; >> t1 = [0:.01:.99]; >> plot(t1,y2); After each plot, store the picture or print it out to compare. This is similar to your problem and should give you what your looking for. For more explanation on these functions, type: >> help "function_name" and an explanation will come up on this function and it's variants. For your code, use the code above as a template. Also, if you want to see what each one of these lines are doing, remove the semicolon from each line of code.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote