ans = diary-2008-02-07 rand ans = 0.8147 rand ans = 0.9058 a = 0.1270 0.9134 0.6324 0.0975 b = 0.2785 0.9649 0.9572 0.5469 0.1576 0.4854 0.9575 0.9706 0.8003 c = 0.1419 0.9157 0.9595 0.0357 0.4218 0.7922 0.6557 0.8491 ans = Columns 1 through 7 7 5 6 2 8 4 3 Column 8 1 d = Columns 1 through 2 -0.4326 0.2877 -1.6656 -1.1465 0.1253 1.1909 Columns 3 through 4 1.1892 0.1746 -0.0376 -0.1867 0.3273 0.7258 v = Columns 1 through 2 -4.5225 -0.8462 Columns 3 through 4 -4.3074 -3.5430 Columns 5 through 6 7.3519 5.4224 Columns 7 through 8 -0.2435 9.2533 Columns 9 through 10 -4.4833 1.5812 A = Columns 1 through 2 39 80 77 20 Columns 3 through 4 49 65 45 71 Columns 5 through 6 76 68 28 66 Columns 7 through 8 17 50 13 96 Columns 9 through 10 35 23 59 75 Columns 11 through 12 26 70 51 89 Columns 13 through 14 96 15 55 16 Column 15 26 84 d = Columns 1 through 3 -0.5883 0.1139 -0.0956 2.1832 1.0668 -0.8323 -0.1364 0.0593 0.2944 Column 4 -1.3362 0.7143 1.6236 v = Columns 1 through 5 47 54 56 42 43 Columns 6 through 10 53 48 53 54 54 Columns 11 through 15 56 53 56 44 50 a=x+2 ??? Undefined function or variable 'x'. ave_points = 78.6667 game1=67; game2=90; game3=81; ave_points = 79.3333 Enter the points scored in the first game 67 Enter the points scored in the second game 91 Enter the points scored in the third game 70 ave_points = 76 5 9 1 7 2 4 The problem has no solution! Enter the points scored in the first game: 89 Enter the points scored in the second game: 60 Enter the points scored in the third game: 82 Average of points scored in a game is: 77 yr = [1984 1986 1988 1990 1992 1994 1996]; pop = [127 130 136 145 158 178 211]; tableYP(:,1) = yr; tableYP(:,2) = pop; YEAR POPULATION (MILLIONS) 1984 127 1986 130 1988 136 1990 145 1992 158 1994 178 1996 211 The problem, as entered, has no solution. Please check the input data. The problem, as entered, has no solution. Please check the input data. MATLAB thinks pi is 3.14 MATLAB thinks pi is 3.1415926536 MATLAB thinks pi is 3.1416e+00 MATLAB thinks pi is 3.1416 and e is 2.7183 T = Columns 1 through 3 1.0000 2.0000 3.0000 1.0000 1.4142 1.7321 Columns 4 through 5 4.0000 5.0000 2.0000 2.2361 If the number is: 1, its square root is: 1.000000 If the number is: 2, its square root is: 1.414214 If the number is: 3, its square root is: 1.732051 If the number is: 4, its square root is: 2.000000 If the number is: 5, its square root is: 2.236068 x = Columns 1 through 3 0 0.4488 0.8976 Columns 4 through 6 1.3464 1.7952 2.2440 Columns 7 through 8 2.6928 3.1416 values = Columns 1 through 3 0 0.4339 0.7818 Columns 4 through 6 0.9749 0.9749 0.7818 Columns 7 through 8 0.4339 0.0000 V = Columns 1 through 3 3.0000 16.0000 -4.0000 Column 4 7.3000 A = 6.0000 -2.1000 15.5000 -6.1000 8.0000 11.0000 var = 56.0000 -4.2000 3.0000 7.5000 -1.6000 198.0000 Lect5_Data = 56.0000 -4.2000 3.0000 7.5000 -1.6000 198.0000 Warning: XLSREAD has limited import functionality on non-Windows platforms or in basic mode. Refer to HELP XLSREAD for more information. data = Columns 1 through 3 11.0000 2.0000 34.0000 15.0000 6.0000 -20.0000 0.9000 10.0000 3.0000 55.0000 9.0000 1.0000 Columns 4 through 6 14.0000 -6.0000 0 8.0000 0.5600 33.0000 12.0000 -25.0000 -0.1000 -0.5550 17.0000 6.0000 Column 7 8.0000 5.0000 4.0000 -30.0000 TestData2 = Columns 1 through 3 5.1200 33.0000 22.0000 4.0000 92.0000 0 12.0000 5.0000 6.5300 Columns 4 through 5 13.0000 4.0000 1.0000 7.5000 15.0000 3.0000 F1 = 375.8770 -136.8081 F2 = 433.0127 250.0000 F3 = -559.0449 421.2705 Ftot = 249.8449 534.4625 FtotM = 589.9768 Th = 64.9453