Anyone here ever had to use Matlab before and is good with it? Anyways, here's a "homework" problem that I need help with, and any advice is good (or better yet, type out the code for me Thanks ahead of time
Are you a Texas A&M student? I can't help you this problem, but a good buddy of mine is a junior MechEn, and he complains about Matlab a lot.
Bored, never done any Matlab programming, but... Using: http://www.math.utah.edu/~wright/misc/matlab/programmingintro.html Code: clear WATER_TEMP = 100; COPPER_TEMP = 1187; SILVER_TEMP = 2193; GOLD_TEMP = 2660; THRESHOLD = 0.05; N = input('Substance temperature: '); if N >= WATER_TEMP*(1-THRESHOLD) & N <= WATER_TEMP*(1+THRESHOLD) 'The substance is probably water.' end if N >= COPPER_TEMP*(1-THRESHOLD) & N <= COPPER_TEMP*(1+THRESHOLD) 'The substance is probably copper.' end if N >= SILVER_TEMP*(1-THRESHOLD) & N <= SILVER_TEMP*(1+THRESHOLD) 'The substance is probably silver.' end if N >= GOLD_TEMP*(1-THRESHOLD) & N <= GOLD_TEMP*(1+THRESHOLD) 'The substance is probably gold.' end if N = 69 'CLUTCHFANS > YOU' end Something like that?!