フィルターのクリア

Signal toolbox licenses error while using Matlab Engine for Python

14 ビュー (過去 30 日間)
Deepanshu Kaurav
Deepanshu Kaurav 2022 年 3 月 7 日
回答済み: Siraj 2023 年 12 月 4 日
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 Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by