Question: Use Matlab code Q1e In the Qle.m file, use fzero() to determine the distance x where the costs from Company 1 and Company 2 are

Use Matlab code Use Matlab code Q1e In the Qle.m file, use fzero() todetermine the distance x where the costs from Company 1 and Company2 are equal. Use fprintf() to print the distance and cost from

Q1e In the Qle.m file, use fzero() to determine the distance x where the costs from Company 1 and Company 2 are equal. Use fprintf() to print the distance and cost from both companies (in millions) to 3 decimal places. An example output is provided below. Distance x at which both costs are equal: ???.???km Company 1: $???.??? Million Company 2: $???.??? Million *You should have four figure windows by the end of this task. Qid Another company (Company 2) has also given a quote, where the cost of laying the onshore pipeline is $Co2 per km and the cost per km of the subsea pipeline depends on the water depth n (km) and is written as Cs = Cs(1 + an) where a is the depth factor. Consider the case where the depth of the water increases linearly with distance from the shore (y) such that n(y) = 0.5y where is the slope factor. In this case, it is possible to show that the cost of the subsea portion of this pipeline will be Costes = Csz(1 + 0.5&D)/x2 + (1 + 2)D2 In the Q1d.m file, create a function handle for the cost of the pipeline from Company 2 with inputs L, D, x, Cs2, C02, E, a. Calculate the cost of the pipeline for 0

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!