How to clear thingspeak channel from Matlab?

조회 수: 39(최근 30일)
Mirko 2020년 3월 4일
댓글: Christopher Stapels 2021년 2월 22일
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:


Vinod 2020년 3월 5일
Try this:
UserAPIKey = 'YOUR_USER_API_KEY'; % This is available from
url = sprintf('',num2str(ChannelID),UserAPIKey)
response = webwrite(url, weboptions('RequestMethod','delete'))
  댓글 수: 1
Mirko Mirabella
Mirko Mirabella 2020년 3월 8일
Thank you Vinod for the support, the Script that you send me work perfectly.
Now I can clear my ThingSpeak channels directly from MATLAB.

댓글을 달려면 로그인하십시오.

Larry Fostano
Larry Fostano 2020년 11월 3일
I must be missing something here , how do I do that
  댓글 수: 2
Larry Fostano
Larry Fostano 2021년 2월 21일
Ok I still don't see any script, how do I use a script that I don't have? Thank you

댓글을 달려면 로그인하십시오.

Larry Fostano
Larry Fostano 2021년 2월 21일
If I copy the url it says this page isn't working, contact the site owner, thanks
  댓글 수: 1
Christopher Stapels
Christopher Stapels 2021년 2월 22일
Try this one and then modify it to have the channel values you need.

댓글을 달려면 로그인하십시오.


더 많은 답변 보기:  ThingSpeak 커뮤니티


Find more on ThingSpeak in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by