Question: All problems in this assignment are to be done using MATLAB. You will submit two script ( * . m ) files and two function

All problems in this assignment are to be done using MATLAB.
You will submit two script (*.m) files and two function (*.m) files, named appropriately and
each containing appropriate comments, containing the solutions to all problems.
a. Script files should be named in the following format: HWxPx.m
b. Function files must be named the same as the function.
Only files with *.m extensions will be accepted.
It is your responsibility to make sure that your script (*.m) file works properly and is free from
errors by utilizing the resources at your disposal.
a. DO NOT use the clear command in your code.
b. All final answers, and ONLY final answers, should be output to the command window, i.e.
make sure you use the ; to suppress output of each line that does not need to be
displayed to the command window.HW2P2(9 points):
The volume V and the surface area A of a torus-shaped water tube are given
by:
V=142(a+b)(b-a)2 and A=2(b2-a2)
Write a function file [A,V]= Torus (a,b) to determine V, and A and
return them as output arguments with a and b as the input arguments.
Check your results using the following table.
Grading rubric:
Correct function/file name: 1 point
Correct inputs: 2 points
Correct outputs: 2 points
Correct calculations: 4 points
If the code does not run, but a good effort was put forth: 3 points
 All problems in this assignment are to be done using MATLAB.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!