% m-file that sets data for many Masc 223 Matlab Laboratory Problems.
% Variables set:
%    b, x, y
%    B, Y, Y
%    budg1, budg2, budg3, budg4
%    hits, pname, resul
%    HITS, PNAME, RESUL
%    massf, molwt
%    RMS
%    supply
%    v1, v2, v3, v4, v5
%    emgrades, emnemaes, emcredit
supply=[1 2 3 3 2 0 11
        4 0 2 1 1 1  0
        2 0 7 5 0 3  3
        0 3 3 2 2 1 15
        5 5 5 5 5 5  5
       14 0 4 4 4 4  0
        3 3 3 3 3 0  0
        2 2 2 2 2 0 12
        1 0 1 1 1 1  0
        8 0 8 8 8 8  0];
v1=[300 350 400 450 500 550 600 650 250 200 1225];
v2=[100 150 75 50 300 0 250 300 100 50 1225];
v3=[100 100 75 50 100 0 100 200 50 50 0];
v4=[50 100 0 0 0 0 100 100 50 0 0];
v5=[0 100 0 0 0 0 100 0 0 0 0];
emgrades = [85 90 92 75 70
            55 65 70 80 85
            75 73 78 79 74
            63 82 65 84 90
            99 85 75 77 65
            82 75 88 93 90];
emnames = ['A. Atcheson '
           'B. Brewster '
           'C. Carraway '
           'D. Duggett  '
           'E. Easton   '
           'F. Fairchild'];
emcourse=['Home Work'
          'Quiz 1   '
          'Quiz 2   '
          'Project  '
          'Final    '];
emcredit=[.1 .2 .2 .2 .3];
massf=[0.05 0.22 0 0.22 0.36 0.15];
molwt=[44.05 58.08 93.12 58.12 153.84 119.39];
budg1=[650    0  300  100  500  500  100 1000  200  100  200  100
       575    0  300  100  400  500  200  200  400  200  400  150
       300  300  300 1000  300  500  300  100  600  300  600  200
       300  300  300  100  200  500  400 1000  800  400  800  250
        25  300  300  100  100  500  500  250 1000  500    0  300]';
budg2=[1000 1000  400  200  500  600  100 1000  300  600    0  350
      2000 2000  400  200  400  600 2002  200  500  700  200  400
       300  300  400  200  300  600  300  200  700  800  400  450
       300  300  400  200  200  600  400  900  900  900  600  500
        25   25  400  200  100  600  500  300  100  100  800  550]';
budg3=[600  600  500  300  500  700  100 1000  400  199  200  600
       600  600  500  300  400  700  200  200  600  300  500  650
       100  100  500  300  300  700  300  300  800  200    0  700
       100  100  500  300  200  700  400  800 1000  400  600  750
       900  900  500  300  100  700  500  340  200  500  800  800]';
budg4=[1010 1500  600  400  500  800  100 1000  500  600  200  850
       2500 2500  600  400  400  800  200  200  700  700  400  900
        300  300  600  400  300  800  300  400  900  800  600  950
        300  200  600  400  200  800  400  700  100  900    0  100
        100  100  600  400  100  800  500  400  300  100  800  105]';
resul=['SO  ';'WALK';'1BH ';'2BH ';'3BH ';'HR  '];
pname=['Jones ';'Smith ';'Anders'];
hits=['SO  WALK1BH ';'HR  1BH SO  ';'SO  SO      '];
RESUL=[
'SO    '
'IFOUT '
'OFOUT '
'WALK  '
'SACRIF'
'1BH   '
'2BH   '
'3BH   '
'HR    '];
PNAME=[
'SMITH     '
'WASHINGTON'
'THOMAS    '
'GARCIA    '
'NGUYEN    '
'JONES     '
'HAMILTON  '
'THOMPSON  '
'WILSON    '
'L. JONES  '
'FAIRCHILD '];
HITS=[
'3BH   2BH   WALK  SO    1BH   SACRIFSO    SACRIFWALK  IFOUT WALK  '
'1BH   1BH   2BH   SACRIFOFOUT 3BH   WALK  2BH   OFOUT SO    SO    '
'SACRIF2BH   IFOUT SO    SO    IFOUT 2BH   OFOUT SO    SACRIFSACRIF'
'SACRIFSACRIFIFOUT OFOUT 3BH   2BH         2BH   OFOUT SO    HR    '
'SACRIFSO    3BH   SO    WALK  SACRIF      2BH   2BH   SACRIFSO    '
'IFOUT HR    IFOUT WALK  1BH   1BH         SACRIFHR    WALK  3BH   '
'HR    OFOUT OFOUT WALK  3BH   HR          2BH   2BH   SACRIFOFOUT '
'WALK  3BH   IFOUT HR    SO    SO          2BH   HR    OFOUT WALK  '
'2BH         2BH   2BH   2BH   2BH         OFOUT IFOUT 1BH   1BH   '
'1BH         OFOUT OFOUT 1BH   IFOUT       IFOUT SO    1BH   IFOUT '
'            1BH         SO                SACRIF      WALK        '
'            WALK        SACRIF            2BH         IFOUT       '
'            OFOUT       IFOUT             SACRIF      3BH         '];
b=[-.33 .75];
x=[1 2 3];
y=[.5 1 2];
B=[1.3 0.58  0.03];
X=1:10;
Y=[0.949859542    0.1973976434   0.2786139756   0.6050642553   0.8005221617];
Y=[Y, 1.041075874    1.160641622    1.347526154    1.407087493   1.61298406];
RMS=[7   3   2   4   2
 8   5   9   1   9.5
 6   3   8   2   6
 5   3   7   0   4];
