You will have to use Task Scedular of windows 10 to do this.
- Create a Matlab Script which calls isitCold(). And then Processes the result to do whatever.
- Open Start.
- Search for Task Schedular.
- Right-click the "Task Scheduler Library" branch, and select the New Folder option.
- Type a name for the folder. For example, MyTasks. (This step isn't a requirement, but it's a recommended step to keep your tasks separate from the system and apps tasks.). Click OK
- Click the Action menu and Select the Create Basic Task option.
- In the "Name" field, type a short descriptive name for the task. For example, Notepad Launcher.
- In the "Trigger" choose "daily" and Select the time accordingly.
9. Select Start a Program in the "Action" section. You will next be asked to select the script that should run. Do that.
10. Click Finish.
All done!
I have assumed that you use windows 10. But all OS have a task schedular. You should be able to that easily after a small search.
P.S. - This is not really a MATLAB problem as far as I can tell.