473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

calling matlab

Hi;

Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.

I know this is probably more suitable to a matlab group but any ideas will
be appreciated.

thanks
moe smadi

Oct 12 '05 #1
3 3983
There is a module named pymat avvailable from
http://sourceforge.net/projects/pymat that provides a limited set of
functions for intertfacing Python to Matlab. The functions are:
open for opening a Matlab session
close for closing a Matlab session
eval for evaluating a Matlab command
put for sending a matrix to Matlab
get for getting a matrix from Matlab

Mohammed, you might want to look at this module to see if it has the
functionality you need.

Howard

Mohammed Smadi wrote:
Hi;

Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.

I know this is probably more suitable to a matlab group but any ideas will
be appreciated.

thanks
moe smadi


Oct 12 '05 #2
"Mohammed Smadi" <sm*****@grads.ece.mcmaster.ca> wrote in message
news:ma*************************************@pytho n.org...
Hi;

Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.

I know this is probably more suitable to a matlab group but any ideas will
be appreciated.

thanks
moe smadi

Mohammed -

I worked through this a while back, and posted my solution at
http://www.geocities.com/ptmcg/pytho...om_python.html.

Best of luck,
-- Paul
Oct 12 '05 #3

"hrh1818" <ho******@westerncom.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
There is a module named pymat avvailable from
http://sourceforge.net/projects/pymat that provides a limited set of
functions for intertfacing Python to Matlab.


I think that pymat was superceded by mlabwrap
http://mlabwrap.sourceforge.net/

Alan Isaac
Oct 25 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul McGuire | last post by:
I've spent the past day or so working through the various complexities in calling Matlab routines from Python (please do not reply with suggestions to use Numpy/Scipy/etc. - our customer is using...
9
by: Carl | last post by:
I am desperately looking for a way to call Python from Matlab. I have become used to Python's rich syntax and large number of libraries, and feel ridiculously clumsy being stuck with Matlab's...
1
by: rini | last post by:
Using the Shell command I am calling an exe generated from matlab. The black console appears but for a moment only.I am not being able to see the output.How this problem can be solved? Please...
3
by: Ajith Menon | last post by:
Do any body know how to use the functions available in the MATLAB using C#? ( To be specific, functions COHERE used to find Coherence and TFE to calculate Transfer function are needed. These...
1
by: eric_jin | last post by:
i wrote a c# webservice to call matlab functions. add is the function written in matlab,and then make it dll to use in c#; //add.m function result=add(left,right) result=left + right; ...
4
by: itcecsa | last post by:
Hi, I am implementing a small Python project, what I am going to do is to open Matlab and run some M-files, and get some output from Matlab command prompt. I have no idea how to open Matlab...
0
by: rperera | last post by:
1. I want to call a matlab function that my colleague did in Matlab from Python E.g >>matlab.DetermineOutputValues(text,ArrayOfValues) My input is text, and ArrayOfValues is the value...
2
by: sree12 | last post by:
Hi, Can anyone of u help me to call Matlab functions from c++ program. I need to write a c++ program and from this, i need to carry out a few calculations and need to plot the...
14
by: Luna Moon | last post by:
Dear all, Can C++/STL/Boost do the vectorized calculation as those in Matlab? For example, in the following code, what I really want to do is to send in a vector of u's. All other...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.