Question: Problem 3 (4 points) Suppose you need to generate n+1 equally spaced points in the interval (a, b) with spacing h= (b-a), n > 1.

Problem 3 (4 points) Suppose you need to generate n+1 equally spaced points in the interval (a, b) with spacing h= (b-a), n > 1. You can use either 10=a, I; =1:-1 +h, i= 1,...,n or I;= a +ih, i=0,...,n. . (1 point) Which of (1) and (2) would you chose and why? (3 points) Write a Matlab program implementing both methods and find an example, say with a = 0 and b= 1, that illustrates the difference between them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
