Herberth Gracia in MATLAB Answers
上次活动时间: 2019-12-3

Hi MathWorks Community, I have a very strange problem and I hope you can help me. I have a code, this code does a simple lineal regression with the function FIT. This code works in my principal account (account 1) without problems or errors. This same code (copy - paste) does not work in other account (account 2). The only difference between both accounts is that the account 2 has a public channel. The error is this: 'fit' requires one of the following: Curve Fitting Toolbox Model-Based Calibration Toolbox Predictive Maintenance Toolbox Error in Correlation TvsH (line 32) fitObject = fit(temperatureData,humidityData,'poly1'); As I said before, I think this is a very strange error, because in the account 1, the code works perfectly, however in the account 2, it does not work... Somebody knows What can I do for solve this problem?, I need to use Matlab toolbox in account 2. Thanks for your attention, I hope you can help me.
Ank Agarwal in MATLAB Answers
上次活动时间: 2017-9-18

I read this page: https://www.mathworks.com/help/thingspeak/plot-a-histogram-with-a-distribution-fit.html I generated a histogram with a gaussian fit using histfit but I also need the correlation coefficient for the fit to the data. How do I obtain it? current code: load('datafile.dat'); ydata=datafile; histfit(ydadta,100);

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.