Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7217

Re: Call python function from Matlab

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!plix.pl!newsfeed1.plix.pl!news.nask.pl!news.nask.org.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!polsl.pl!not-for-mail
From Adam Przybyla <adam@rybnik.pl>
Newsgroups comp.lang.python
Subject Re: Call python function from Matlab
Date Wed, 8 Jun 2011 07:19:58 +0000 (UTC)
Organization Politechnika Slaska, Gliwice
Lines 16
Sender Adam Przybyla <adam@smtp.ertel.com.pl>
Message-ID <isn7qt$dgu$1@polsl.pl> (permalink)
References <659556b7-bd7d-415e-919e-e5e8260b6f70@j28g2000vbp.googlegroups.com>
NNTP-Posting-Host smtp.ertel.com.pl
X-Trace polsl.pl 1307517598 13854 62.182.231.178 (8 Jun 2011 07:19:58 GMT)
X-Complaints-To news@polsl.pl
NNTP-Posting-Date Wed, 8 Jun 2011 07:19:58 +0000 (UTC)
User-Agent tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/2.6.18-194.8.1.el5xen (i686))
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7217

Show key headers only | View raw


nazmul.islam@gmail.com <nazmul.islam@gmail.com> wrote:
> I need to call a python function from a Matlab environment. Is it
> possible?
> 
> Let's assume, I have the following python code:
> 
> def squared(x):
>    y = x * x
>    return y
> 
> I want to call squared(3) from Matlab workspace/code and get 9.
> 
> Thanks for your feedback.
	... try this: http://pypi.python.org/pypi/pymatlab
Regards
								Adam Przybyla

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Call python function from Matlab "nazmul.islam@gmail.com" <nazmul.islam@gmail.com> - 2011-06-07 22:12 -0700
  Re: Call python function from Matlab Adam Przybyla <adam@rybnik.pl> - 2011-06-08 07:19 +0000
    Re: Call python function from Matlab Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-06-08 09:33 +0200
  Re: Call python function from Matlab Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-06-08 09:29 +0200

csiph-web