Error in ThingSpeak with Fit Function

조회 수: 9 (최근 30일)
Herberth Gracia
Herberth Gracia 2019년 11월 29일
댓글: Herberth Gracia 2019년 12월 3일
Hi MathWorks Community, I have a very strange problem and I hope you can help me.
  1. I have a code, this code does a simple lineal regression with the function FIT.
  2. This code works in my principal account (account 1) without problems or errors.
  3. This same code (copy - paste) does not work in other account (account 2).
  4. The only difference between both accounts is that the account 2 has a public channel.
  5. 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.

채택된 답변

Vinod
Vinod 2019년 12월 1일
This is because you are logging in with two different MathWorks Accounts, each of them have access to a different set of toolboxes.
To confirm, go to your MathWorks Account page that lists the products each account is licensed to. Note that you can use functions from MATLAB, and any toolboxes you are licensed to, on ThingSpeak when you are logged in with that account.
If you want to use the toolboxes from both accounts, ask your MATLAB license administrator to add both accounts as licensed end users on MATLAB and the toolboxes you are looking to use.
  댓글 수: 1
Herberth Gracia
Herberth Gracia 2019년 12월 3일
Thanks Vinod, That's the problem, my other account has a full license. I thougth that the code designed worked with ThingSpeak toolboxes, but no, it used extra toolboxes of my account. Thank you!

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

추가 답변 (0개)

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by