EML3035 matlab question

Question Description

everything you need is in the file attached

Unformatted Attachment Preview

EML3035 S19 Homework 1 Due: Mondays, 2/4 ; Wednesdays, 2/1 NOTE: Solve all problems in a single .m file and submit it to Canvas when you are done. Problem 1 The Brinell hardness test consists of indenting an spherical tip into the sample material and using the size of the indentation to calculate the magnitude of the materialā€™s hardness. The $% formula used to obtain the hardness is: š»šµ = + + &'(')āˆš' ), where, L is the applied load, D is the diameter of the indentor and d is the diameter of the indentation. For a load of 3000 kg, an indentor diameter of 10 mm and an indentation diameter of 7.2 mm, write a Matlab program in an .m file that performs the following tasks: First define the parameters above and print in the command window the values of L, D and d such as: The load applied in kg is 3000. The diameter of the indentor isā€¦. Then calculate the Brinell hardness based on the formula provided above and print the result in the command window. Problem 2 2 Given š“ = .5 2 1 āˆ’2 0 3 š‘’ 5.7 9 , āˆ’1 š‘„5 2 a) Solve the following system of equations: š“ .š‘„$ 9 = .āˆ’19 š‘„; 1 b) Calculate the inverse of A. c) Multiply the last two rows element by element. d) Calculate the natural logarithm of the first column of A. Problem 3 5= Plot the following function š¹ = 5)> +, where s represents position and F is force. F should be in the y-axis and position s in the x-axis. Use a position range going from -10 to 10. Make sure you use enough points so that the curve looks smooth. In the same figure, plot this other function, š»= ;7 āˆš&? @+ š‘’ ) AB for x going from -8 to 8. Use a different color and line style for this second function. Problem 4 Letā€™s try to manage some of the traffic lights in an 4 way intersection. We will focus just on one direction. If thereā€™s a car on the left lane, turn both lights (the arrow and the circle) green. If thereā€™s a car on the right lane and no cars on the left lane, turn the circle light green and keep the arrow red. If there are no cars, keep both lights red. Pretend you can turn on/off the lights by just sending written commands using fprintf. Light Problem 5 The cost of electricity varies depending on the time of the day. We want to calculate the cost of using a machine for certain hours each day. Write a program to calculate such cost. We will input the time we turn the machine on and the time we turn it off. Based on this, your program has to calculate the total cost of electricity. The machine uses 125,000 W (watts). The cost of electricity is given below: Time frame 6AM ā€“ 11:59AM 12PM ā€“ 8:59PM 9PM ā€“ 11:59PM 12AM-5:59AM Calculate the cost for the following cases: a) On at 7AM, off at 10PM b) On at 9AM, off at 4AM c) On at noon, off at midnight Cost ($ per kWh) 0.75 1.1 0.6 0.4 ...
Purchase answer to see full attachment

Final Answer

Hi ,, here is the matlab file. I used to do the...

Super_Teach12 (2461)
University of Virginia

Return customer, been using sp for a good two years now.

Thanks as always for the good work!

Excellent job

Similar Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors