This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % "y38". % % (d) Plot y38 v. the x values created for interp1 on the same plot as % the original. Use blue points. See prob4.jpg for an example. x = [1 2 4 6 9 10]; % DO NOT EDIT THIS LINE y = 3:8; % DO NOT EDIT THIS LINE plot(x, y, 'r-'); title('y vs. x'); xlabel('x-axis'); ylabel('y-axis'); yInterp = interp1(x, y, 6.25); x38 = linspace(3, 8, 20); % vector of 20 evenly spaced valuse between 3 and 8 y38 = interp1(x, y, x38); hold on plot(x38, y38, 'b.');...
View Full Document
This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.
- Fall '08