100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ENGR 2050 ECU Final Exam Questions & Answers 2024/2025 $8.49   Add to cart

Exam (elaborations)

ENGR 2050 ECU Final Exam Questions & Answers 2024/2025

 1 view  0 purchase
  • Course
  • ENGR 2050 ECU
  • Institution
  • ENGR 2050 ECU

ENGR 2050 ECU Final Exam Questions & Answers 2024/2025 Write a MATLAB function called rad2deg that will take an angle in radians as the input argument and return the angle converted to degrees. Write the MATLAB code to plot the function rad2deg from 0 to 2pi - ANSWERSfunction deg = rad2deg(rad...

[Show more]

Preview 2 out of 8  pages

  • September 12, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • ENGR 2050 ECU
  • ENGR 2050 ECU
avatar-seller
wanjejer1900
ENGR 2050 ECU Final Exam Questions
& Answers 2024/2025

Write a MATLAB function called rad2deg that will take an angle in radians as the input argument and
return the angle converted to degrees. Write the MATLAB code to plot the function rad2deg from 0 to
2pi - ANSWERSfunction deg = rad2deg(rad)

deg = rad * 180/pi ;

end



fplot(@rad2deg, [0 2*pi])



Write a MATLAB function that will calculate the volume and weight of water in a conical tank. The
function should have two input arguments (diameter and height) and return an array containing the
volume and weight of water. Note: The specific weight of water is 62.4 lb/ft^3. - ANSWERS//Vcone = 1/3
pi r^2 h

//Wcone = specific weight * Vcone



function [v,w] = funcalc(d,h)

v = 1/3 * pi * (d/2)^2 * h ;

w = v * 62.4 ;

end



//In command window

[v,w] = funcalc(3,4)



Calculate the weight of a brass sphere in pounds. What formulas should you put in for specific weight
and weight? - ANSWERSVsphere = 4/3 pi r^3

Wsphere = volume * specific weight

, VLOOKUP = data in columns

HLOOKUP = data in rows



VLOOKUP(what you are looking up, data table range, what # column of data set, TRUE= exact match /
FALSE = approx. match)



A car's acceleration over 6 seconds is shown in the table below. Determine the velocity over this time
frame using the trapezoid method. - ANSWERSArea of Trapezoid = 1/2 * (y2+y1)*(x2-x1)

Sum Areas = Car's velocity over time frame



Determine the value of A after each script is executed in MATLAB. How many times is the loop executed?



A=0;

for i = 1:5

A = A + 5;

end

A - ANSWERSA = 25

executed 5 times



Determine the value of A after each script is executed in MATLAB. How many times is the loop executed?



for m = 1:3

A(m) = 5*m;

if A(m) <= 25

A(m) = 0;

end

end

A - ANSWERSA = 0

executed 3 times

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller wanjejer1900. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.49
  • (0)
  Add to cart