gistlib
main.mfunction category = temperatureCategory(temp) if temp < 32 category = 'freezing'; elseif temp >= 32 && temp <= 50 category = 'cold'; elseif temp > 50 && temp <= 70 category = 'cool'; elseif temp > 70 && temp <= 90 category = 'moderate'; else category = 'hot'; end end 332 chars14 lines
function category = temperatureCategory(temp) if temp < 32 category = 'freezing'; elseif temp >= 32 && temp <= 50 category = 'cold'; elseif temp > 50 && temp <= 70 category = 'cool'; elseif temp > 70 && temp <= 90 category = 'moderate'; else category = 'hot'; end end
gistlibby LogSnag