Graphics Reference
In-Depth Information
0.9921 0.1253 0.1269
0.9893 0.1461 0.1480
0.9860 0.1668 0.1692
0.9823 0.1874 0.1907
0.9781 0.2079 0.2124
0.9736 0.2284 0.2344
0.9686 0.2487 0.2567
0.9632 0.2689 0.2792
0.9573 0.2890 0.3019
0.9511 0.3090 0.3249
0.9444 0.3289 0.3483
0.9373 0.3486 0.3719
0.9298 0.3681 0.3959
0.9219 0.3875 0.4203
0.9135 0.4067 0.4452
0.9048 0.4258 0.4706
0.8957 0.4446 0.4969
0.8862 0.4633 0.5236
0.8763 0.4818 0.5505
0.8660 0.5000 0.5774
eXerCISe 6-8
Get 30 points (xi, yi) for the periodic function y = sin x for values of x that are equally spaced, interpolating them
between 20 values of (x, y) given by y = sin (x) for x values evenly spaced in the interval (0, 2 p ), and using the
interpolation method based on the fast Fourier transform (FFt).
First, we define the 20 x values equally spaced between 0 and 2 p .
>> x = 0:pi/10:2*pi;
now find the 30-point interpolation (x, y) .
>> y = interpft(sin(x), 30);
>> points = [y; asin(y)]'
points =
0.0000 0.0000
0.1878 0.1890
0.4499 0.4667
0.6070 0.6522
0.7614 0.8654
0.9042 1.1295
0.9618 1.2935
0.9963 1.4848
0.9913 1.4388
0.9106 1.1448
Search WWH ::




Custom Search