Questions tagged [mlabwrap]
15 questions
13
votes
2 answers
Run a MATLAB script from python + pass args
I am looking to from MATLAB from Python. I need to use the MATLAB Image Acquisition Toolbox to acquire few images from a video camera.
MATLAB seems to be a nice solution because the Image Acquisition is easy and i have to do some image processing…

user1812539
- 133
- 1
- 1
- 6
12
votes
0 answers
mlabwrap setup query
I happened to stumble upon an answer posted by user brentlance regarding the linking of Matlab to Python, and was wondering if I could ask the community for some advice regarding the initial setup of the mlabwrap module.
I'm on Windows 7 32 bit,…

nathanDonaldson
- 353
- 1
- 9
9
votes
4 answers
Calling MATLAB .m-files and functions in Python script
I have a platform for python scripting, and I would like to call matlab functions inside. I have found several threads tackling the issue, among them those two
How do I interact with MATLAB from Python?
Running m-files from Python
However, threads…

kiriloff
- 25,609
- 37
- 148
- 229
6
votes
2 answers
numpy to matlab interface with mlabwrap
I am looking for a simple way to visualize some of my data in numpy, and I discovered the mlabwrap package which looks really promising. I am trying to create a simple plot with the ability to be updated as the data changes.
Here is the matlab code…

D R
- 21,936
- 38
- 112
- 149
4
votes
2 answers
How do I use mlabwrap to call a matlab function with cell arguments from python?
Well, I was proud of myself that I got mlabwrap installed properly, but now I cannot get it to work with matlab cells. In python, lists are analogous to cells, so I figured I would input a list and mlabwrap would convert it to a cell. …

Stretch
- 1,581
- 3
- 17
- 31
3
votes
0 answers
Can't install mlabwrap in Windows
I typed python setup.py install in Windows cmd.exe, but I got error like this
WINDOWS SPECIFIC ISSUE? Unable to remove c:\users\admini~1\appdata\local\temp\tpxs79tx;
please delete it manually
[Error 32] :…

speedcell4
- 666
- 8
- 23
3
votes
1 answer
Mlabwrap multiprocessing
I am trying to work with matlab through python to prototype a system that I have developed. Is mlabwrap capable of handeling multiprocessing? This may come across as very stupid, but I was thinking I could do the following:
from multiprocessing…

Mark
- 409
- 2
- 6
- 17
2
votes
1 answer
Error on set_param SimulationCommand start - "memory allocation failed or you have no X connection"
I'm trying to launch a simulink simulation using python script ( mlabwrap as python wrapper for matlab ). I open the simulink *.mdl file using:
open_system("thermo","loadonly");
I use set_param to initialize the simulation:
set_param("thermo",…

Michal Gallovic
- 4,109
- 2
- 18
- 25
2
votes
1 answer
how to set MATLABPATH in Python and using mlabwrap?
I tried to use mlab.path(path,'/my/path') but failed. Got NameError: name 'path' is not defined in python. Anyone has an idea?

zihaoyu
- 5,483
- 11
- 42
- 46
2
votes
1 answer
Call Matlab2013 from Python3.x on Windows 7x64
Task: Call a function from Matlab 2013b using Python 3.x on Windows 7 (all x64).
Question: Is there a Python package that allows me to do that?
I already tried:
mlabwrap
python-matlab-bridge
pymatlab
but none of these work with the configuration…

Mailerdaimon
- 6,003
- 3
- 35
- 46
1
vote
1 answer
mlabwrap setup Mac OS X
I have been trying to install the mlabwrap Python library, but keep on running into the following error when I run the setup.py file using the command python setup.py install in the terminal:
Traceback (most recent call last):
File "setup.py",…

user2480019
- 61
- 2
- 9
1
vote
1 answer
Type-Error while using mlabwrap-purepy to call custom functions
I downloaded mlabwrap-purepy from: https://github.com/cpbotha/mlabwrap-purepy
Next, I call matlab functions using the following:
%% Python init
import matlabwrap
mlab = matlabwrap.init()
%%
I can easily call all inbuilt matlab…
import matlabwrap
mlab = matlabwrap.init()
%%
I can easily call all inbuilt matlab…

pulkitag
- 605
- 6
- 10
1
vote
1 answer
Error in installing mlabwrap in Windows
I tried to install mlabwrap in Windows by following the steps in this article. After I completed all steps, when I typed from mlabwrap import mlab in Python, I got the following error:
>>> from mlabwrap import mlab
Traceback (most recent call…

tonga
- 11,749
- 25
- 75
- 96
0
votes
1 answer
Should I install mlabwrap or there is other alternatives?
I am trying to install mlabwrap but it is not working.
I downloaded it and I installed it as follow:
From command window I got into the mlabwrap folder
I typed python setup.py install
Everything is fine
I opened Pycharm and I typed from mlabwrap…

Jika
- 1,556
- 4
- 16
- 27
0
votes
1 answer
Multiple outputs with mlabwrap
I have a Matlab function that returns a variable number of results. In Matlab I call it in the following way
>> [A, B] = func(C);
When I use mlab to wrap this call in Python I only get A
>>> result = mlab.func(C)
Pattern matching on the Python…

MRocklin
- 55,641
- 23
- 163
- 235