Question: sorry for uploaded wrong image Exercise 2: Write MATLAB code to create an N dimensional vector with uniformly spaced numbers between 0 and no 1

sorry for uploaded wrong image Exercise 2: Write MATLAB code to createan N dimensional vector with uniformly spaced numbers between 0 and nosorry for uploaded wrong image

Exercise 2: Write MATLAB code to create an N dimensional vector with uniformly spaced numbers between 0 and no 1 Then create a vector y with the data f(t) where f(t) = 6 sin(t) - 9 sin t). Finally, multiply each entry of y by h, where h= 2(N+1) % Put your code here Exercise 5: Repeat all of the above exercises but with N=10, N=50 and then N=500. (Either copy/paste all the commands here, or simply change N above and re-execute the sections.) What do you notice as you increase N? This code is actually an implementation of a finite difference approximation to the solution of a second order ordinary differential equation boundary value problem. Check that the approximation matches the true solution, 1-sin^3(t), by plotting each vst on the same graph. % Put your code here Put your observations here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!