联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Matlab编程Matlab编程

日期:2021-02-11 11:22

CMPSC 200 – Lab 3

Description

Objectives:

1. Use MATLAB to perform engineering calculations.

2. Apply scripts, functions, and local functions to an engineering problem.

Description:

You have a steel plate with thickness ?? and side lengths ????& ????. It has holes of diameter ?? drilled in a

rectangular pattern with spacing ??, as shown below. In such a scenario it is important to know the final

volume and surface area of the part. Volume is needed so that the weight can be predicted, while

surface area is needed so that surface treatments can be planned.

Deliverables:

Based on a set of given information provided in a script, the student must:

? Define 2 local functions for the script.

o To perform a unit conversion.

o To determine the number of holes required based on the size of the plate, holes, and

required spacing

? Define a single function that outputs the surface area and volume of the resulting metal sheet.

dHole + space

dHole + space

Instructions:

1. Open MATLAB and Canvas, download the required file for Lab 03, and place it in your working

folder.

2. Open the script and follow the instructions given in the comments.

3. You should not use global variables in today’s lab.

4. (8 pts) Be sure to replace the instructional comments with your own comments after you

complete each step.

5. (7 pts) Be sure to use good naming conventions for any variables you define.

6. (5 pts) After you are finished and you have confirmed your results for the preset dimensions,

change the values given for the sheet dimensions to reflect this sheet: Steel Sheet when it has

holes drilled in it with a ?? ???? drill bit and the holes are spaced ?? ???? apart.

7. When you are done, you should have the script that you were provided (heavily modified now)

and the AreaVolume function that you created. Highlight both files in the MATLAB current folder

window (you can select both by holding Ctrl when you click on them), then right-click and select

“Create Zip File.” Name the zip file with LAB03_psu123.zip, replacing psu123 with your Penn

State email ID#.

8. Upload the zip file to Canvas.


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp