Gspread was installed on the Pi and a project called "myrpi" was created. This is meant to record CPU temperature data and Usage percent to a sheet. A ThingSpeak account was also created so data could be logged in their database to be used in MATLAB. The CPU usage percent and free memory was recorded in ThingSpeak.
The Sheet updates every 10 seconds while the script is running and the ThingSpeak data updates every minute.