- 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
- 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.
- You can also run the following code to check if the Signal Processing Toolbox license is available:
Signal toolbox licenses error while using Matlab Engine for Python
조회 수: 13 (최근 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
댓글 수: 0
답변 (1개)
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.
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!