In computerized typography the problem arises of finding an


Question: In computerized typography the problem arises of finding an interpolant to points that lie on a path in the plane (e.g., a printed capital S). Such a shape cannot be represented as a function of x because it is not single valued. One approach is to number the points (Xl, yl), ... , (xn, Yn) as we traverse the curve. Let di be the straight-line distance between (Xi, Yi) and (Xi+b Yi+l), i = l:n - 1. Set ti = dl + ... + di-l, i = l:n. Suppose Sx(t) is a spline interpolant of (Xl, tI), ... ,(xn, tn) and that Sy(t) is a spline interpolant of (Yl, tl), ... , iu«, tn). It follows that the curve A = ((Sx(t), S7I(t)) : h ~ t ~ tn} is smooth and passes through the n points. Write a MATLAB function [xi, yi] - SplinelnPlane (x ,y ,m) that returns in xi (1:m) and yiC 1:m) the x-y coordinates of m points on the curve A. Use the MATLAB Spline function to determine the splines Sx(t) and St/(t).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: In computerized typography the problem arises of finding an
Reference No:- TGS02271619

Expected delivery within 24 Hours