· 4 years ago · Jun 13, 2021, 01:54 PM
1% Enter your MATLAB code below
2readChannelID = ; %%channel Id here
3readAPIKey = ' '; %%read API key here
4f_s=250;
5ecg = thingSpeakRead(readChannelID,'Field',1,'NumPoints',500,'ReadKey',readAPIKey);
6
7N1=length(ecg);
8t1=[0:N1-1]/f_s;
9plot(t1,ecg,'r'); title('Raw ECG Data')
10xlabel('time')
11ylabel('amplitude')