Display the result of Matlab workspace in Thingspeak

조회 수: 2 (최근 30일)
MH
MH 2020년 9월 7일
댓글: MH 2020년 9월 8일
hello dear
I working on a power system by Matlab simulation and all results of my project contains x-axis values and Y-axis values and I want to display these results on Thingspeak, but the problem of Thingspeak has displayed only the y-axis with time (date) in the x-axis.
for example, I have two values:
The X-axis represents the number of iteration (100, 200, 300, 400, 500)
The Y-axis represents the power values (2kw, 3 kW, 3.5kW, 1kw, 0.5kW)
please how can display the result of Matlab workspace in Thingspeak?
How disply the result in down image in Thingspeak field?
please reply
Best Regards

답변 (1개)

Christopher Stapels
Christopher Stapels 2020년 9월 8일
You can use the MATLAB visualizations app to generate this visualization. Write your data to two consecutive fields in a channel with any timestamp you wish. If you put the data in a table and then a timetable, this will make it easiest to write to ThingSpeak.
In a MATLAB visualization (in ThingSpeak), use the ThingSpeakRead() function to get the data into MATLAB. Use the scatter or plot command on the two fields of interest. This example shows a similar workflow where you can plot two non -time variables.
  댓글 수: 1
MH
MH 2020년 9월 8일
Dear christopher
I need to show the results of Matlab in my computer software at the same time display the result in Thingspeak
I mean, I need to display the results in Matlab and Thingspeak at the same time
can I do that? or not?
please reply

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

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Visualize Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by