Question: 1. a. Interpolate the function sin(x) at 5 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss) over the interval [0; pi/2]. I used this code below,

1. a. Interpolate the function sin(x) at 5 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss) over the interval [0; pi/2].

I used this code below, but it is not working in matlab because its giving my a "plot(chebyshev(x,y));" error. Could you please help me fix the code?

N=5; h=1/N; x=0:h:pi/2; y = sin(2*pi*x); plot(chebyshev(x,y));

title('Chebyshev Sine Plot'); xlabel('x-axis'); ylabel('y-axis'); grid

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!