Question: Write a Matlab script that uses a sub- function that computes and plots the numerical second derivative of a passed function for an input
Write a Matlab script that uses a sub- function that computes and plots the numerical second derivative of a passed function for an input range using an input step size, h, and the centered difference ap- proximation, i.e. the subfunction has to be a Matlab function function. Test it with the function: Q(z) = e-9 sin (27(z - zo)), where q = 1 and zo = 2, with z in the interval z = [0, 4].
Step by Step Solution
There are 3 Steps involved in it
Step1 First we need to define the main function in the Matlab script Lets call it computeSecondDeriv... View full answer
Get step-by-step solutions from verified subject matter experts
