Question: In MATLAB please Problem 1. Function Name: hwl.1 Inputs: (double) width - width of the box (m). (double) height - height of the box (m).

In MATLAB please Problem 1. Function Name: hwl.1 Inputs: (double) width -In MATLAB please

Problem 1. Function Name: hwl.1 Inputs: (double) width - width of the box (m). (double) height - height of the box (m). (double) length - length of the box (m). (double) paint - how much paint you have (m). Outputs: (logical) tooBig - if the surface area is greater than the paint. (double) surface Area - surface area of the box. Function Description: Your job is to paint boxes. For each box, you can only cover a certain surface area, dictated by how much paint you're given for the job - given by the paint variable. You are interested in writing a program that both gives you the sur- face area given width, height, and length of the box, and if you have enough paint to cover the box. Examples: hwl_1(1, 2, 3, 7) should output true, 22] hwl_1(1, 1, 1, 9) should output (false, 6] Tests Understanding Of: if/else condition basic MATLAB operations

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 Databases Questions!