Question: Problem 6 : Material Cost Calculator Write a MATLAB script that calculates the total cost of materials needed for a project. The script should take

Problem 6: Material Cost Calculator
Write a MATLAB script that calculates the total cost of materials needed for a project. The script should take the quantity of three materials (in units), and their costs per unit, and return the total cost. Use 10 planks of wood at $5? plank, 15 lbs of steel at $12lb, and 20 lbs of gravel at $7lb.
Problem 7: Beam Load Distribution
A uniform load of 500Nm is applied to a beam that is 10 meters long. Write a MATLAB script to calculate the total load on the beam.
Problem 8: Plotting a Temperature Profile
Given a vector of average monthly temperatures, write a MATLAB script to plot these temperatures over the months. Use 22,24,28,32,35,37,36,34,30,26,24,22 in Celsius for the temperatures starting in January and ending in December and label the axes appropriately.
Problem 9: Area under Curve
Calculate and display the area under the curve y=5x2+3x-2 from x=0 to x=10 using MATLAB's numerical integration functions.
Problem 10: Stress in a Column
The stress () in a column subjected to a vertical load P is given by =PA, where A is the cross-sectional area. Write a MATLAB function that calculates the stress in a column given P and A. Test your function with P=1000N and A=50cm2.
Problem 6 : Material Cost Calculator Write a

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 Civil Engineering Questions!