結果:
For Q&A
17%
For programming tasks
27%
For writing
9%
For fun
26%
Other use-case not mentioned here
3%
What's ChatGPT?
17%
4555 票
In the Matlab analysis option on my Thingspeak channel I chose to experiment with the example in the title regarding humidity average. It works fine but only works once. How can I keep it updating every 5 minutes or so?
I am very happy with ThingSpeak. I have a prototype Pico W project that it working well.
I tried 6 other IOT platforms and ThingSpeak was the BEST!
I wrote about my experience here:
Hi all,
I am wondering whats the total cost to use MATLAB for algo trading. The transparent part is of coz the price of matlab and the toolboxes. But I was shocked to find out the APIs to connect to Interactive Brokers are not free (costly in fact!). Is there free API to connect to IB? What other hidden costs are there? I saw the X Trader in the Automated Trading with MATLAB video. Is this XTrader software part of MATLAB toolbox? Do we need to pay additional to Trading Technologies (to use X_Trader). Also what data feed is the most cost effecient? Is there any additional hidden cost that I am not aware of?
Thanks!
MATLAB users come to Cody to learn MATLAB and the best way to learn is to learn from other community users. However, when you tried to see all solutions, you saw a message that you had to solve a new problem to unlock all the solutions or submit a solution of a smaller size. This is very confusing and we have been hearing this pain point from users.
Today, the Cody team is pleased to announce that players are able to see all solutions to a problem once they solve it correctly.
After solving a problem, you will see a button that says ‘View Community’s Solutions’, which will bring you to the list of all solutions.

Note that this is our first step in facilitating the learning aspect of Cody. We are actively working on improving the solutions list, so your input is valuable to us. Please let us know your comments or suggestions.
Hi
I used to have the following daily max, min and mean code working. But, this week it seems to work for max and mins but not means. Any idea what's going on?
writeAPIKey = 'xxxxxx';
% Define date range of 1 day
end1 = datetime('now')
start=datetime('today')
% Read Weight data from Field1 for last 24 hrs
[Weight, time] = thingSpeakRead(xxxxxx,'DateRange', [start,end1], 'Fields', [1]);
Wtmax = max(Weight); % Get 24hr Max
Wtmin = min(Weight); % Get 24hr Min
Wtav = mean(Weight); % Get 24hr Av
% display results
display(Wtmax, 'Wt_max'), display(Wtmin, 'Wt_min'), display(Wtav, 'Wtav');
Output:
end1 =
datetime
30-Jan-2023 14:00:35
start =
datetime
30-Jan-2023
Wt_max =
-0.0685
Wt_min =
-0.5190
Wtav =
NaN
Good morning,
I am trying to receive a long number in thingspeak and convert it to a string. However, when I receive it, it converts it to a number using scientific notation. I have tried changing the format to long g and others and was able to get rid of the scientific notation part.
After doing so, I have used commands such as num2str, mat2str, and compose to represent the number as a string, but I keep getting results that are off. An example is a message i am sending as:
field1=100630000553400000000
using an MQTT desktop client. However, when I receive it and print the result, I get:
0100630000553399992320
The numbers are close but the right one. Is there something I am missing?
Thanks in advance!
Pedro Ch.
I want to import data from a .cvs with the requested format but constantly the same error comes out : "The uploaded file was not imported because it is missing timestamps."
My data is in this format:
created_at,field1,field2,field3
1600064881,50.818,0,0
Could someone help me fix it?
Thank you
I want to understand this from the scratch, i will appreciate help and guidance very much.
Hi, what would be the best approach to use the gauge widget to display calculated data? I have a channel that displays a value that needs some math applied to it to give a correct value. I have a matlab visualization that converts this value into what I need and plots it. However, i believe a gauge is more appropriate than a plot and it seems the matlab "uigauge" object does not work for thingspeak.
Is there a way for the gauge widget to show my data coming out of the matlab script?
Thanks!
Yes in MATLAB
18%
Yes but only in some other language
22%
Yes in MATLAB and other language(s)
7%
Not yet but would like to learn how
34%
No & don't foresee any need to yet
19%
4243 票
Every year, we show our appreciation to the top contributors by awarding two types of annual badges: Most Accepted badge and Top Downloads badge.
Most Accepted badge goes to the top 10 contributors whose answers received the most acceptances. Top downloads badge goes to the top 10 contributors with the most downloaded submissions.
In 2022, the recipients for Most Accepted are: @Walter Roberson, @Voss, @Star Strider, @Torsten, @Image Analyst, @Matt J, @KSSV, @Jan, @Stephen23, and @DGM.
The recipients for Top Downloaded are: @Cleve Moler, @Yarpiz, @John D'Errico, @Seyedali Mirjalili, @Rodney Tan, @Yair Altman, @Chad Greene, @Steve Miller, @Giampiero Campa, and @Scott Lowe

Congratulations and thank you again for your outstanding contribution in 2022!
When solving problems over on Cody, I can almost always view all solutions to a problem after submitting a correct solution of my own. Very rarely, however, this is not the case, and I instead get the following message:
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
You may solve another problem from Community group to unlock all the solutions to this problem.
If this happens, then again, I can almost always rectify this by submitting a (correct) solution to a different problem (I take it that the Community group is the implicit group of all problems on Cody --- is it?). But sometimes that, too, fails.
So my question is, why? What are the criteria that determine when all solutions are, in fact, unlocked?
Accidentally clicked on the "X" and field 1 chart disappeared. How do I recall the chart ?
MathWorks is hosting the QIT Boston event to discuss Ethical AI for the LGBTQ+ community on its Lakeside campus, hosted by our own Heather Gorr, PhD.
AI is known to learn biases from the various sources that affects our daily lives, and in particular minority groups like LGBTQ+.
Join the discussion to what the impacts are, where the biases come from, and how to mitigate as you develop AI.
Sign up here
https://www.eventbrite.com/e/oit-boston-panel-discussion-ethical-ai-for-the-lgbtq-community-registration-496419814027
Hi,
I'm trying to send data from a LoRa Node to the dragino Lg01-N gateway and then to the thinkspeak platform. Actually, the data arrives to the gateway and i get the following result read from the gateway

but the value does not reach the thingspeak platform.
on the other side i tried to send the data manually from the gateway using the following command

and the data is written successfully at the thingspeak. In this link we set the topic -t as channels/XXXXX/publish. but at the first figure the topic which is sent automatically from the gateway to the thingspeak is channels/XXXXX/publish/APIkey
i think the problem is here. i don't know how to change the form of the topic received by the gateway and sent to the thingspeak...is it possible to modify that? i tried to modify the mqtt_process.sh file, but all my changes do not make anny effect on the received packet from the lora node.
could you help me please to resolve this problem?
thank you in advance
Hello, I need help with a simple example. I am trying to do a simple bulk update using JSON in Javascript, using this parm, header and body:
$.post("https://api.thingspeak.com/channels/xxxxxxxxx/bulk_update.json" ,{
"Content-Type": "application/json",
"write_api_key" : "xxxxxxxxxxxxxxxx",
"updates": [
{
"created_at": "2022-12-30 10:26:2 -0800",
"field1": 100,
"field2": 100,
"field3": 200,
"field5": 600
},
{
"created_at": "2022-01-12 10:27:2 -0800",
"field2": 100,
"field3": 200,
"field5": 600
}],
function(data){
console.log(data) // log anything returned to the console
}
});
When I run the above (Mac OS, Chrome, Javascript) I receive this error message:
Access to XMLHttpRequest at 'https://api.thingspeak.com/channels/1283582/bulk_update.json' from origin 'https://backpaqlabs.com'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
api.thingspeak.com/channels/1283582/bulk_update.json:1
Failed to load resource: net::ERR_FAILED
Is there something wrong with the syntax or JSON payload that can cause this CORS error? I have tried both local command line and from my hosted server. I am starting to see CORS errors with Javascript getJSON calls as well, so wondering if there is something going on at the endpoint. In this example, I have literally taken it from the example in the doc, so I assume it should comply with the API endpoint. Does seem to work OK with same code on Postman and CURL, so I believe syntax is correct. Ideas?
Any help appreciated!
Simple question: I noticed there's a Modeling & Simulation Challenge Master badge over on Cody, but I can't find the corresponding group. So: where is it? Does it still exist at all?

Hi, having problems with this model. Tried changing all the capacitor values without any success. Any help/suggestions would be most welcome.
You provided 2,007 anwers and received 529 votes. Thank you for your contribution to the community!
MATLAB Central Team