This topic is locked from further discussion.

Avatar image for ossama224
ossama224

147

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1 ossama224
Member since 2011 • 147 Posts

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)

Avatar image for drLEGENDARY
drLEGENDARY

103

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2 drLEGENDARY
Member since 2012 • 103 Posts
whats a matlab?
Avatar image for senses_fail_06
senses_fail_06

7033

Forum Posts

0

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

#3 senses_fail_06
Member since 2006 • 7033 Posts
whats a matlab? drLEGENDARY
I think he means mathlab, but I'm not sure.
Avatar image for CosmoKing7717
CosmoKing7717

4602

Forum Posts

0

Wiki Points

0

Followers

Reviews: 3

User Lists: 0

#4 CosmoKing7717
Member since 2004 • 4602 Posts
>.> I avoided matlab like a plague at my college since I had always heard how terrible it is.
Avatar image for thriteenthmonke
thriteenthmonke

49823

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5 thriteenthmonke
Member since 2005 • 49823 Posts
You need to find EJ902.
Avatar image for kuraimen
kuraimen

28078

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#6 kuraimen
Member since 2010 • 28078 Posts
I have used it a couple of times but I don't remember how it was very well.
Avatar image for ZumaJones07
ZumaJones07

16457

Forum Posts

0

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

#7 ZumaJones07
Member since 2005 • 16457 Posts
hit me up in a year and i may be able to help you
Avatar image for shakmaster13
shakmaster13

7138

Forum Posts

0

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

#8 shakmaster13
Member since 2007 • 7138 Posts
Yeah buddy. I love it due to all the build in math formulas, however I find Mathematica more useful at times despite it's complexities.
Avatar image for IZoMBiEI
IZoMBiEI

6477

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#10 IZoMBiEI
Member since 2002 • 6477 Posts

I only know basic matlab stuff, I have to look stuf up everytime I use it.

Avatar image for IZoMBiEI
IZoMBiEI

6477

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#11 IZoMBiEI
Member since 2002 • 6477 Posts

LOL I just noticed all the people giving math advice. hilarious.

Avatar image for blackacidevil96
blackacidevil96

3855

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#12 blackacidevil96
Member since 2006 • 3855 Posts

my coding is done almost entirely in matlab. i work with it daily. whats the question

Avatar image for metroidprime55
metroidprime55

17657

Forum Posts

0

Wiki Points

0

Followers

Reviews: 3

User Lists: 0

#13 metroidprime55
Member since 2008 • 17657 Posts
Yeah I know some MATLAB.
Avatar image for chessmaster1989
chessmaster1989

30203

Forum Posts

0

Wiki Points

0

Followers

Reviews: 8

User Lists: 0

#14 chessmaster1989
Member since 2008 • 30203 Posts
Working in a program that defines everything as matrices sucks unless you want to work with matrices. Well I guess it's okay for some simulations as well. Honestly though my first recommendation (depending on what you're doing) would be find another program.
Avatar image for ThumpyBowser
ThumpyBowser

369

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#15 ThumpyBowser
Member since 2011 • 369 Posts

Yeah, he/she is talking about http://mymathlab.com/. I know you are are all trampling his/her feelings and making fun of his typo but yeah.

Avatar image for Dark__Link
Dark__Link

32653

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#16 Dark__Link
Member since 2003 • 32653 Posts
[QUOTE="ThumpyBowser"]Yeah, he is talking about http://mymathlab.com/. I know you are are all trampling his feelings and making fun of his typo but yeah.

Joke?
Avatar image for ossama224
ossama224

147

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#17 ossama224
Member since 2011 • 147 Posts

Yeah buddy. I love it due to all the build in math formulas, however I find Mathematica more useful at times despite it's complexities.shakmaster13

Think you could help me out im really in need of 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)

Avatar image for chessmaster1989
chessmaster1989

30203

Forum Posts

0

Wiki Points

0

Followers

Reviews: 8

User Lists: 0

#18 chessmaster1989
Member since 2008 • 30203 Posts

Yeah, he/she is talking about http://mymathlab.com/. I know you are are all trampling his/her feelings and making fun of his typo but yeah.

ThumpyBowser
Matlab is a program. :|
Avatar image for randomtask09
randomtask09

109

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#19 randomtask09
Member since 2009 • 109 Posts

lol @people who have no idea what MATLAB is so instead of taking 3 seconds to google search it and enlighten themselves they just assume the OP doesnt know what he's talking about....WTF

anyways its actually a pretty nice program. Its a very useful tool for engineering particularly chemical and biomedical. And judging by the OP's problem I say there's a really good chance hes either studying ChemE or Material Science.

Avatar image for ossama224
ossama224

147

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#20 ossama224
Member since 2011 • 147 Posts

I'm actually a freshman doing undecided engineering and three weeks into class and this is what they are having us do smh, any help any1?

Avatar image for Poncho_Hachacha
Poncho_Hachacha

675

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#21 Poncho_Hachacha
Member since 2011 • 675 Posts

[QUOTE="drLEGENDARY"]whats a matlab? senses_fail_06
I think he means mathlab, but I'm not sure.

Personally, I thought he meant meth lab... Just when I thought I might be of some assistance. :(

Avatar image for ossama224
ossama224

147

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#22 ossama224
Member since 2011 • 147 Posts

[QUOTE="senses_fail_06"][QUOTE="drLEGENDARY"]whats a matlab? Poncho_Hachacha

I think he means mathlab, but I'm not sure.

Personally, I thought he meant meth lab... Just when I thought I might be of some assistance. :(

Keep telling urself that :cool:

Avatar image for Napster06
Napster06

5659

Forum Posts

0

Wiki Points

0

Followers

Reviews: 9

User Lists: 0

#23 Napster06
Member since 2004 • 5659 Posts
MATLAB? *shudders* ...and :D to the various interpretation of MATLAB. It looks like a basic matrix problem. I did MATLAB, but I didn't give much attention to it since I hated it. I guess (from my memories of past lectures) you could try the tri-diagonal matrix method. A quick Googling could help.
Avatar image for comp_atkins
comp_atkins

38929

Forum Posts

0

Wiki Points

0

Followers

Reviews: 3

User Lists: 0

#24 comp_atkins
Member since 2005 • 38929 Posts
used it a bit in college, not since then. can't be of much help :?
Avatar image for ej902
EJ902

14338

Forum Posts

0

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

#25 EJ902
Member since 2005 • 14338 Posts
matlab is better than sex with a lady (though there probably aren't any of those at your school if they're making you use matlab) and you are a better person for using it though that looks straightforward enough, what are you having problems with? Homework help isn't really allowed here so we can only give you vague advice
Avatar image for xXDrPainXx
xXDrPainXx

4001

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#26 xXDrPainXx
Member since 2008 • 4001 Posts
Had to set that up for the Engineering department at my last job and that software was a pain to setup, remotely deploy and have it configured to what the university wanted. Between this and ArcGIS I'm so glad I don't have to set this up anymore.
Avatar image for ossama224
ossama224

147

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#27 ossama224
Member since 2011 • 147 Posts

Actually im all finished even thought none of you guys were of any help :P. I was just panicking because i have the worst professor who refuses to help anyone and sucks at teaching but its all okay now. And for those who dont know what matlab is i like to think of it and using program that turns the user into a calculator himself.