please refer the following for your lab. and I revised the code for NO.3 I did in the class, but please, I want you to learn something, not just copy my code. so if you still confused what's going on, there are many help resources you can go to. thanks. Lab 4 deals with Chapter 4 of Gilat (which has not been done in recent years!) focusing on formatting output in Matlab. g5c4p124x07: No formatting is required in the problem, though you can use fprintf (pp104-107) to give an explanation with their answer. The hard part here is setting up the formula to calculate R. Draw the figure and show that cos(theta) = R/R+h. you should then solve for R to obtain the desired formula. g5c4p125x08: Again no formatting required in the problem. Use a formula to find k and calculate A (assuming A0=1). DO NOT WORRY ABOUT INPUTTING THE GRADES! Script files with user input do not publish. Instead, just define the vector in the script file. The problem gives them the commands needed to calculate the desired statistics (make sure they use variables which are not built-in functions! Type 'help NAME' in the Command Window to test (where "NAME" is the name of the variable they want to use). Use the fprintf command (pp104-107) to create the desired mix of text and output. g5c4p125x10: (disp, fprintf) To display the table, use the disp command (pp101-103) or fprintf to format the output (see example on pp109-110, but ignore the "fid1" and "fid2" variables). Also notice that B is the balance REMAINING but the table asks for the percent PAID. (A-B)/A*100. g5c4p128x17: The hard part here is setting up the problem. Re-draw the figure in the problem (include up to the center of the circular path) using point P for the airplane and highlight the right triangles formed by drawing a horizontal line from P to the vertical. I would find x and y first, then use these to calculate r and theta. Print the table using disp or fprintf as in the previous problem. g5c4p130x24: (fprintf) set up the problem, write the generic function p(x)=ax^3 + bx^2 +cx + d and show the equations obtained from the points. Once the system of equations is solved, you should use the fprintf command to write out the polynomial (all coefficients to two decimal places). Also remind you to look at the Maplets for the week. Let me know if you have any questions about this lab. Thanks