I think their is a problem with the test case 3.
I guess you're right
T1 and T2 do not necessarily imply x(1) and x(2).the higher temp. is always in den.
I have used Max(x) and Min(x) ... then also the test case does not satisfy...
The problem is the isequal() without any tolerance...
The conversion between Kelvin and Celsius is 273.15, not 273.
Sigh...a little challenge with tolerance? :)
haha~just finish it as fast as I can, didn't have time realizing how stupid this answer is. I saw your answer by the way, it just avoid the tolerance issue with avoiding obvious subtract, brilliant move!
Try 1.5.4: Celsius to Fahrenheit
03 - Matrix Variables 1
Matlab Basics - Set unwanted parts of a vector to zero
prime test 2
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office