Can you test connectivity from your GSM shield? Are you sure the GSM shield is not going into some sort of hibernate mode? Before you send data to thingspeak, can you program your device to ping http://www.thingspeak.com or http://www.mathworks.com?
To troubleshoot, It would help if you linked your sketch here.