How to convert a python code file into matlab code, please help.

I am using on command window system('python filename.py') ,but it is not working.

回答 (1 件)

Jan
Jan 2014 年 11 月 1 日

0 投票

You cannot convert a python function automatically to Matlab.
If you explain "not working" with any details, we could try to assist you to solve the underlying problem.

3 件のコメント

sweety
sweety 2014 年 11 月 1 日
okay....when i am writing on command window of matlab system(' python filename.py') then i got this message...'python' is not recognized as an internal or external command, operable program or batch file.
sweety
sweety 2014 年 11 月 1 日
is there any way ?? Can i first convert python into C language after that C can be converted into MATLAB ???
Geoff Hayes
Geoff Hayes 2014 年 11 月 2 日
@saroj - perhaps you don't have python installed. Go to your command window (outside of MATLAB) and type something like
python -V
What do you see? When I run the same in an OS X terminal window, I see
Python 2.7.2

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2014 年 11 月 1 日

コメント済み:

2014 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by