prob4 - plot (x,y,'r') yInterp = interp1(x, y, 6.25) %...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Script Name: prob4 % Script Variables: % 1. yInterp - Interpolated y-point for x = 6.25 using interp1 % 2. y38 - A vector with 20 y points for x between 3 and 8 x = [1 2 4 6 9 10]; % DO NOT EDIT THIS LINE y = 3:8; % DO NOT EDIT THIS LINE
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot (x,y,'r') yInterp = interp1(x, y, 6.25) % Figuring out point where x located at % 6.25, within plot of x and y x38 = linspace(3, 8, 20); y38 = interp1(x,y,x38) hold on plot (x38,y38, '.')...
View Full Document

Ask a homework question - tutors are online