- 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
73 ビュー (過去 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 で Manage Products についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!