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: HWxPxm
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, ie
make sure you use the ; to suppress output of each line that does not need to be
displayed to the command window.HWP points:
The volume and the surface area of a torusshaped water tube are given
by:
and
Write a function file Torus to determine and A and
return them as output arguments with a and as the input arguments.
Check your results using the following table.
Grading rubric:
Correct functionfile name: point
Correct inputs: points
Correct outputs: points
Correct calculations: points
If the code does not run, but a good effort was put forth: points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
