Temperature dependent action

Forgive my ignorance, but what has a Matlab script to do with Arduino?

Assuming it is relevant what sorts of parts do you think you will need for your project?

...R