I need some help with this matlab lab i am working on and am wondering if anyone could help.
Exercise 1: Write an m-file to solve the set of simultaneous linear equations for the mass balance that you wrote out for prelab. In the m-file, first input from the user the matrix A, then d. Find the inverse of A, and multiply it times d for the solution. Then find the solution by using the special operator (\). Print out matrix A, d and the solution. You should use the formatted print statement fprintf. What amounts of each material are required to make the stainless steel?
The data is:
Looking in the ASM handbook, you find that AISI 304 is a high-chromium, low-carbon steel with the composition: 17.5%Cr, 8.5%Ni, 0.5%Mn, 0.2%C, and 73.3%Fe. Talking to the stock room supervisor you find that the following materials are available:
Alloy scrap (68.0%Cr, 20.0%Ni, 2.0%Mn, 0.2%C, and 9.8%Fe)
Ferrochrome (75.0%Cr, 0.1%Mn, 2.0%C, and 22.9%Fe)
Pure Nickel (99.8%Ni, 0.1%Mn, and 0.1%Fe)
Pure Iron (0.1%Mn, 0.1%C, and 99.8%Fe)
Pure Graphite (99.9%C, and 0.1%Fe)
Log in to comment