photo

Bo Li

Last seen: Today Actif depuis 2014

Followers: 0   Following: 0

Message

Statistiques

  • 12 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Weird behaviour of py.importlib when using "InProcess" ExecutionMode
It appears that "third_part_library" happens to use the Python multiprocessing package. In such case, the Python module creates ...

environ 2 ans il y a | 0

Réponse apportée
How to execute Python script inside a Matlab '' for loop ''?
Hopefully I understand the question correctly. I wonder you can create a Python function in a Python file mymodule.py to wrap y...

presque 5 ans il y a | 1

Réponse apportée
Proper importing of MATLAB structures into Python
Would you share more details about how the file "lib.mat" is created? I tried following steps: >>lib.name='hello' >>Str...

presque 7 ans il y a | 0

Réponse apportée
I am confused on 'Slicing MATLAB arrays behaves differently from slicing a Python list. Slicing a MATLAB array returns a view instead of a shallow copy.', when I learned how to use Matlab.engine in python.
This is indeed confusing. The change is made in place, that's why A[0] becomes [2,2]. To elaborate the behavior, here is how A...

environ 7 ans il y a | 0

Réponse apportée
how to read 'categorical' values from 'mxArray'?
You can’t create categorical arrays with mxArray API, as there is no categorical in the mxClassID: <https://www.mathworks.com...

plus de 7 ans il y a | 0

Réponse apportée
MATLAB Engine API for Python: changing parameters of the running simulation
This looks related how you run the simulation. Instead of running "sim", you may use set_parm to star the simulation like follo...

plus de 7 ans il y a | 1

Réponse apportée
How can python reach the input of a Matlab GUI?
Do you work in MATLAB environment or Python environment? In either case, you probably can log the input of a MATLAB GUI in the c...

plus de 7 ans il y a | 0

Réponse apportée
Running matlab python interface in Jupyter Notebook throws weird error
Probably the version of Jupyter uses an older version of GCC. You may consider forcing Jupyter to use MATLAB version of GCC run...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Unable to run EngineGUIDemo in Java Engine
Adding "<matlabroot>/bin/win64" to the system environment variable PATH is required, otherwise, Java doesn't know where to find ...

plus de 7 ans il y a | 1

Réponse apportée
Problems with MATLAB Engine API for Java
With a simple test "example.java" like this: import com.mathworks.engine.*; public class CNN { public static...

plus de 7 ans il y a | 0

Réponse apportée
Does Java Matlab Engine API have a Javadoc?
The Java Doc needs to be generated from source code, sounds like an enhancement to TMW.

plus de 7 ans il y a | 0

Réponse apportée
Can I make a call to a third party Matlab function while using the Matlab Engine API along with Java?
Did you add "apowb" to the MATLAB path? You can do that using addpath either in MATLAB or through feval in Java. The M file ne...

plus de 7 ans il y a | 0

Réponse apportée
Matlab Java Engine API error
This looks like an Eclipse issue. The example code should just compile if you ignore the hints.

plus de 7 ans il y a | 0

Réponse apportée
Python3: Conflict between matlab.engine and opencv2
Regarding this workflow: >>> import matlab.engine >>> import cv2 It looks that there is a newer version of libstdc++....

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I automatically put the password of my account when using a python engine?
What password are you referring to in your question? Is it password used to launch MATLAB? In that case, do you need to type t...

plus de 7 ans il y a | 0

Réponse apportée
Call poly2trellis in Python
You need to use mlArray in order to pass an array to MATLAB from Python. A Python list is converted into a MATLAB Cell array wh...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Call poly2trellis in Python
How about trying following: >>>eng.get_trellis(7.0) It looks that the poly2trellis expects the first argument to be a do...

plus de 7 ans il y a | 0

Réponse apportée
In the Python API, how can I redirect the output of an asynchronous function call of a function without return value?
What about adding "ret.result()" before printing the output buffer like following? while not ret.done() : pass ret.result(...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Python API: how to get the output?
When "async" is set to true, the result along with the output/error are not available until "future.result" is called. How abou...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Error Installing MATLAB engine API for Python
On Windows, you may need to run the prompt as administrator in order to write to protected folders even if you have administrato...

presque 8 ans il y a | 15

| A accepté

Réponse apportée
Return multiple variables from MATLAB to Python
Apparently, "nargout" is a keyword argument defined for Python Engine. "dp.getTestingData(True, nargout=3)" does not work becau...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Calling Script from python
I can reproduce your error message with following steps: >>> import matlab.engine >>> eng=matlab.engine.start_matlab("-n...

presque 8 ans il y a | 1

Réponse apportée
how do i access data from .db files in mysql lite 3 format available on my local storage ?
MATLAB has Database Toolbox to query SQLite database: <http://www.mathworks.com/help/database/ug/sqlite.html>

presque 8 ans il y a | 0

Réponse apportée
Is it possible to import and use third party matlab functions/packages in python?
It looks that "api.Plex4.createExplicitSimplexStream()" is a Java API and it works when it is called by Python Engine as part of...

presque 8 ans il y a | 0

Réponse apportée
Unable to use Python matlab.engine in a Docker container
Does MATLAB itself run with the Docker container, for example: matlab -nodesktop -r 'disp hello; exit'

presque 8 ans il y a | 0

Réponse apportée
What does MATLAB python engine fail to load from within Spyder or after certain other modules loaded?
Looks like conflict of libraries, maybe running Python with verbose mode (python -vvv) can provide more details.

presque 8 ans il y a | 0

Réponse apportée
Accessing matlab object properties from Python
I can think of following three approaches: # eng.getfield(tr, 'Base'). This getfield function is designed for structure, and...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
problems with code call from python
Would float work for you? import matlab.engine eng = matlab.engine.start_matlab() b = float(input("dimmi la base: "))...

presque 8 ans il y a | 0

Réponse apportée
Cannot import matlab.engine without environment error [Ubuntu 14.04/Anaconda]
It looks like a compatibility issue of ICU. You may use the verbose mode "python -vvv" to find more details about what is going...

environ 8 ans il y a | 0

Réponse apportée
What is the "primary message table for module 77"?
You may try to create a dummy Engine object using engOpen and keep it alive until the end of the application. Meanwhile, you ca...

environ 8 ans il y a | 0

| A accepté

Charger plus