Signal toolbox licenses error while using Matlab Engine for Python

20 views (last 30 days)
I am trying to run some Matlab operations via a python script using Matlab Engine for python. In one of the operations I am getting following error: "MatlabExecutionError: 'FILENAME' sawtooth requires a Signal_Toolbox license."
I checked the toolboxes and I do have Signal Processing Toolbox Version 8.3 available

Answers (1)

Siraj
Siraj on 4 Dec 2023
Hi!
It is my understanding that when you are running a MATLAB operation through a Python script using the MATLAB Engine for Python you encounter the following error,
"MatlabExecutionError: 'FILENAME' sawtooth requires a Signal_Toolbox license."
Here are some troubleshooting steps that can be attempted.
  1. Ensure that the Python version and MATLAB version are compatible. You can refer to the following link to check compatibility: https://www.mathworks.com/support/requirements/python-compatibility.html
  2. Visit https://www.mathworks.com/licensecenter, click on your license number, and then navigate to the "License Details" tab to verify if the Signal Processing Toolbox is listed among the licensed toolboxes.
  3. You can also run the following code to check if the Signal Processing Toolbox license is available:
import matlab
import matlab.engine
import numpy as np
mat_eng = matlab.engine.start_matlab()
print(mat_eng.license('test','Signal_Toolbox'))
If you are certain that you have a valid license, consider reinstalling the Signal Processing Toolbox and try a simple example using the "findpeaks" function, which is part of the signal processing toolbox. Here's a sample code:
import matlab
import matlab.engine
import numpy as np
mat_eng = matlab.engine.start_matlab()
print(mat_eng.license('test','Signal_Toolbox'))
arr = np.array([47, 147, 30, 12, 9, 10], dtype='double')
v, i = mat_eng.findpeaks(arr, nargout = 2)
print(v)
print(i)
If the issue persists, you can reach out to MathWorks for support through this link
Hope this helps.

Categories

Find more on Manage Products in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!