% Data for Homework 10.
%
% ELEC 471, R. Kozick.

% Data:

x = [1, 1.78, 3.16, 5.62, 10];
y = [0.688, 0.849, 2.152, 3.024, 5.453];

% Plot the data

figure(1)
plot(x, y, 'o');
axis([0 12 0 6]);
title('PLOT OF RAW DATA')
xlabel('X')
ylabel('Y')

% To see how well a given value for a "fits" the data:

a = 1;
xm = 0:.1:12;

figure(2)
plot(x, y, 'o', xm, a*xm, 'r-');
legend('DATA', 'MODEL FIT')
s = sprintf('RAW DATA AND FIT WITH a = %f', a);
title(s)
xlabel('X')
ylabel('Y')
% axis([0 12 0 6]);
