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


Groups > comp.lang.python > #90136

Re: Matlab to Python problem

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'converted': 0.09; 'matplotlib': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'matlab': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'reproduce': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header :User-Agent:1': 0.23; 'subject:problem': 0.24; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'appreciated.': 0.29; 'code': 0.31; 'getting': 0.31; 'piece': 0.31; 'file': 0.32; 'text': 0.33; 'could': 0.34; 'problem': 0.35; 'located': 0.36; 'list.': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'received:org': 0.40; 'more': 0.64; 'chance': 0.65; 'assistance': 0.66; 'here': 0.66; 'novice': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Matlab to Python problem
Date Fri, 08 May 2015 12:39:04 +0200
Organization None
References <CAPphnGMJjAeKOMdRKOwxmK0wyv-GAUwJzqeiVZ9-n+v7JE4xMA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p57bd82d4.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.230.1431081552.12865.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1431081552 news.xs4all.nl 2897 [2001:888:2000:d::a6]:51083
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:90136

Show key headers only | View raw


Lesego Moloko wrote:

> I am a Python novice and have recently converted the attached Matlab file
> to Python (attached). The problem is that I cannot reproduce the Matlab
> plots (attached) with the converted Python program. I am also trying to go
> line by line through my converted Python file to see where the problem
> could be.
> 
> I attached:
> 
>    1. Matlab plots (5_p3.png and 4_p3.png)
>    2. The Matlab file (test.m)
>    3. Converted Python file (test.py)
>    4. data files (a2_all_out_P3.dat and t4_all_out.dat)
> 
> You advise and assistance would be highly appreciated.
> Regards

Your chance of getting help is higher with a smaller piece of code inlined 
in the text of your post and a description of the problem that is more 
concrete.

> I am also trying to go
> line by line through my converted Python file to see where the problem
> could be.

Once you have located the problem you might follow up here or on the 
matplotlib mailing list.

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


Thread

Re: Matlab to Python problem Peter Otten <__peter__@web.de> - 2015-05-08 12:39 +0200

csiph-web