(MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) Please complete the following Question...

50.1K

Verified Solution

Question

Programming

(MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLABONLY) (MATLAB ONLY) (MATLAB ONLY)

Please complete the following Question in MATLAB ASAP,Thanks. :)

2a. Write a function that outputs the amount of freezing pointdepression (in degrees C) given a mass of magnesium chloride saltand a volume of water. Formula to calculate freezing pointdepression: ΔT = iKm in which ΔT is the change in temperature in°C, i is the van't Hoff factor, which = 3 for MgCl2 because itdissociates into three ions, one Mg+2 and two Cl- , K is a constantthat equals 1.86 °C kg/mol and m is the molality of the solute inmol/kg. Other useful information so you don’t have to look it up:Moles of MgCl2 = (mass MgCl2)/((atomic mass Mg)+2*(atomic mass Cl))Atomic mass Mg = 24.31 Atomic mass Cl = 35.45 Assume the density ofwater is 1.0 g/mL

2b. Use your function to calculate the depression for 100g MgCl2dissolved in 500mL water

2c. Use your function to calculate the depression for 220g MgCl2dissolved in 1L water

2d. Make a plot that shows the mass of MgCl2 necessary todepress the freezing point of a given volume (range: 1L - 100L)water by 1 degree Celsius. Give your plot appropriate labels and atitle.

Answer & Explanation Solved by verified expert
3.6 Ratings (485 Votes)
Matlab code clc clear all part 2a function definition is at the end of the code please scroll down part 2b masssalt 100 mass of MgCl2 in g volwater 500 vol of water in ml deltaT depressionmasssaltvolwater X1 Part 2b depression in freezing point when num2strmasssalt g MgCl2 is dissolved in    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students