NO CELL PHONES, HEADPHONES/BUDS, NO CALCULATORS. SAVE FREQUENTLY. SAVE BEFORE PUBLISHING!!!
ONLY MATLAB MAY BE ACTIVE ON YOUR COMPUTER.
After translation into mathematics, only Matlab may be used to solve the full problem as posed. Use the appropriate procedures as covered in the lectures. Use appropriate variable names that can be clearly understood by the grader. Use appropriate comments. Acrobat may only be open at the end, when you are ready except for publishing and actively looking at main.pdf with it.
“Open notes: print-outs of lectures and homeworks allowed. You can also use your own homework .m files.”
(1) | |||||
(2) | |||||
(3) | |||||
(4) | |||||
(5) | |||||
(6) | |||||
(7) |
(8) | |||||
(9) | |||||
(10) | |||||
(11) | |||||
(12) |
n
) into a bigger value, without other changes.
Initialize the matrix of this system of equations to zeros, then use
a for
loop over the equations to put in the nonzero elements.
Be careful with the first and last equations as they have a variable
out of order. Also create the right hand side vector. Print out
matrix and right hand sides as [A,b]
.
Use an if
statement to check whether the system of equations
has a reasonably accurate solution. If it does, your code should
solve the system and print out the solution. If it does not, your
code should print an appropriate warning. This should again
continue to work for whatever value is given to variable n
.
ezplot
to plot the function from
to 2. Turn on the grid.
mph: | 15 | 20 | 25 | 30 | 40 | 50 | 60 | 75 | 90 |
lbf: | 60 | 105 | 175 | 255 | 430 | 670 | 940 | 1600 | 2100 |
Measured” and “Approximate, placed in the southeast corner. Use disp to comment on how well you think the fit is.
Solutions without credit distribution.
Solutions with credit distribution.