MATLAB to Python?
MATLABdude
matlab.dude at mbnet.fi
Thu Nov 18 07:16:57 EST 2010
On Nov 17, 10:04 am, MATLABdude <matlab.d... at mbnet.fi> wrote:
Thanks guys!
I still have some problems. I made the code somewhat simpler by
dropping off some parts of it (xx, f).
Now my Python code calculates 8 different values for lambda. The
problem is that I don't know where the minus sign comes from. Also the
values themselves are not identical compared to the values of the
MATLAB program.
nonhomog.py | nonhomog.m
-0.774244159818 | 0.9976
-0.823595831818 | 0.9969
-0.774374006419 | 0.5464
-1.0 | -54.3440
-0.774244172803 | 0.9976
-0.774244289666 | 0.9976
-0.823595831818 | 0.9969
-1.0 | 0.9674
The new Python code can be found here: http://pastebin.com/c1UvtXxu
More information about the Python-list
mailing list