Signal toolbox licenses error while using Matlab Engine for Python

20 次查看(过去 30 天)
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

回答(1 个)

Siraj
Siraj 2023-12-4
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.

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by