Engineering Homework Help

MATLAB Script practice

 

the purpose of this lab is to determine the volume and mass of a prescribed cuboid.

Cuboid Properties:

Density 4420 kg/m3
Length 25 cm
Width 15 cm
Height 3 cm

Program for Volume and Surface Area of Cuboid - GeeksforGeeks

Procedure:

  1. Save your script as MatlabIntroductionFirstName_LastName.m
    • It is recommended to do this step first to protect your work, and save often.
  2. It is important to write the description block at the top of our script to begin. This should include but is not limited to the purpose of the script, your name, and the date.
    • Be sure to provide descriptive and informative comments of all subsequent code.
  3. The next step to writing our MATLAB script is to prepare MATLAB, do this by adding the three clean up commands after your description block.
  4. Create four variables that describe the geometry and properties of the cuboid.
  5. Define the necessary equations to determine the Volume, and Mass of the cuboid.
  6. Upload your script as a .m file via the Submit Assignment button on Canvas.