why MATLAB online error "requires Statistics and Machine Learning Toolbox."

why matlab online error "requires Statistics and Machine Learning Toolbox."
my acadmic license is already linked
hasLicenseForToolbox = license('test', 'Statistics_Toolbox')
output is
hasLicenseForToolbox = 0
Please help me

4 Comments

>>ver command output
--------------------------------------------------------------------------------------------------
MATLAB Version: 24.1.0.2554230 (R2024a)
MATLAB License Number: hidden
Operating System: Linux 5.15.0-1052-aws #57~20.04.1-Ubuntu SMP Mon Jan 15 17:04:56 UTC 2024 x86_64
Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode
--------------------------------------------------------------------------------------------------
MATLAB Version 24.1 (R2024a)
Simulink Version 24.1 (R2024a)
C2000 Microcontroller Blockset Version 24.1 (R2024a)
MATLAB Test Version 24.1 (R2024a)
Parallel Computing Toolbox Version 24.1 (R2024a)
Symbolic Math Toolbox
License centre shows all tool boxes but at MATLAB online command >> ver command does not show " Statistics and Machine Learning Toolbox" as shown in above output. why please? I tried new browser but same error. How to add tool boxes in MATLAB online. Please help
@Ghanshyam, I have removed the license number in the above comment you posted.
You should never share your MATLAB license number with anybody, especially not on a public forum.
Edit - And you edited the comment back welp.

Sign in to comment.

 Accepted Answer

Looks like a license issue.
Here are a few steps suggested by generative AI. If this answer helps you, please remember to accept the answer.
The error message you're encountering in MATLAB Online, which states it "requires Statistics and Machine Learning Toolbox," along with the output of hasLicenseForToolbox = 0 from license('test', 'Statistics_Toolbox'), suggests that MATLAB does not recognize an active license for the Statistics and Machine Learning Toolbox under your account. This situation can occur due to a few reasons, even if your academic license is already linked. Here are some steps and considerations to help troubleshoot and potentially resolve the issue:1. Check Toolbox Availability in Your License
  • Verify Toolbox License: Ensure that your academic license indeed includes the Statistics and Machine Learning Toolbox. Not all academic licenses include all toolboxes, so it's important to confirm this.
  • MATLAB License Center: You can check the toolboxes included in your license by visiting the MATLAB License Center on the MathWorks website. Log in with your MathWorks account to see the details of your license and verify if the Statistics and Machine Learning Toolbox is listed.
2. MATLAB Online Limitations
  • Toolbox Support: While MATLAB Online supports many toolboxes, there might be limitations or specific conditions under which a toolbox is available. Ensure that MATLAB Online supports the Statistics and Machine Learning Toolbox without restrictions for academic licenses.
3. License Activation and Account Synchronization
  • Synchronize License: Make sure your MATLAB Online session is correctly linked to your MathWorks account that has the academic license. Sometimes, logging out and then logging back into MATLAB Online can help refresh the license status.
  • Browser and Cache: Occasionally, browser issues or cached data can interfere with web applications. Try clearing your browser's cache or using MATLAB Online in a different browser or incognito mode to see if the issue persists.
4. Contact Support
If after trying the above steps, you still face the issue, it might be best to contact MathWorks Support directly. They can provide specific assistance for your account and license status. You can contact them through the MathWorks website. Be ready to provide details about your license and the exact error messages you're encountering.
Technical Note
The correct toolbox name to test for the Statistics and Machine Learning Toolbox is "Statistics_Toolbox", as you've used. However, always ensure you're using the latest syntax and commands as per the current MATLAB documentation, as these can change over time.
Conclusion
The issue likely revolves around the licensing and availability of the Statistics and Machine Learning Toolbox under your academic license within MATLAB Online. By verifying the license, checking for any limitations, ensuring proper account synchronization, and potentially reaching out to MathWorks Support, you should be able to resolve the problem.

3 Comments

hi i am also facing same issue can you help me out
Having the same issue connected to the update to R2025b. My license includes that toolbox and Matlab shows that the toolbox is installed. It still won't work.
How to solve this? Which part of the above solved that issue for you?

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2024a

Asked:

on 25 Mar 2024

Commented:

on 17 Nov 2025

Community Treasure Hunt

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

Start Hunting!