Here's an example of a MATLAB function that takes a temperature input and returns the corresponding category:
main.m294 chars14 lines
You can call this function with a temperature value to get the category. For example:
main.m87 chars4 lines
gistlibby LogSnag