473,837 Members | 1,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I think Python is a OO and lite version of matlab

Does anyone agree with me?
If you have used Matlab, welcome to discuss it.

Dec 8 '06 #1
8 2129
Allen wrote:
Does anyone agree with me?
If you have used Matlab, welcome to discuss it.
Sure, and earth is a heavy version of a basketball. If all you have is
a hammer...

George

Dec 8 '06 #2
Sure, and earth is a heavy version of a basketball. If all you have is
a hammer...
It is not make sense to compare earth and basketball.
I think Python introduced many idea of matlab.

If you have used matlab, you will say that they are very very similar,
except that matlab was born years earlier and is used mainly in the
area
of matrix calculation.

I do not mean Python shall feel ashamed for it. We will be pleased that
Python
does absorb many successful ideas of computer languages.

Dec 8 '06 #3
Allen wrote:
It is not make sense to compare earth and basketball.
why not? they're both round, so surely they must have been inspired
by each other. the question is if humanity invented balls before we
figured out that the earth is round, or if it's the other way around...

</F>

Dec 8 '06 #4
On 8 dic, 06:57, "Allen" <che...@naritec h.cnwrote:
>
If you have used matlab, you will say that they are very very similar,
except that matlab was born years earlier and is used mainly in the
area
of matrix calculation.

I do not mean Python shall feel ashamed for it. We will be pleased that
Python
does absorb many successful ideas of computer languages.
Personally, I dont like the Matlab language. I like the "no surprises"
approach of Python, the consistency along different objects, and of
course the vast builtin data structures that let me model almost
anything. None of these are present in Matlab.
I hate gotchas like the degenerate case of sum(M) for a one-row matrix
(avoidable, yes, but "Special cases aren't special enough to break the
rules.").
Of course, if all you do is working with matrices, it's wonderful!

--
Gabriel Genellina

Dec 8 '06 #5
Fredrik Lundh <fr*****@python ware.comwrites:
Allen wrote:
It is not make sense to compare earth and basketball.

why not? they're both round, so surely they must have been inspired
by each other. the question is if humanity invented balls before we
figured out that the earth is round, or if it's the other way around...

</F>
In keeping with the computer science flavor, we can say that no one
invented earth or balls to be round. Rouindness is an emergent
behavior of a substance which has shape-forming adhesion and
shape-changing fluidity, and is subject to radially symmetric
shape-impacting processes. Magma and gravity for the earth, leather
and air pressure for inflated balls, sand and accretion for beach
"cannonball s", and snow and hand pressure for snowballs.

--
Harry George
PLM Engineering Architecture
Dec 8 '06 #6


On Dec 7, 11:48 pm, "Allen" <che...@naritec h.cnwrote:
Does anyone agree with me?
If you have used Matlab, welcome to discuss it.
Numpy definitely was inspired in its extended array syntax by matlab.
Besides that, I don't think two languages could be more different.
Philosophically , matlab is closer to perl.

-Mike

Dec 8 '06 #7
Allen wrote:
Does anyone agree with me?
If you have used Matlab, welcome to discuss it.
Matlab is a tool for scientists and engineers.
Python is a tool for programmers.

I think you are looking at Python from the scientist perspective.
Python's numpy and matplotlib modules would probably feel familiar to
anyone with some matlab experience. But these are not a part of the
language - it is not even a part of the standard library.

I will not go deep into the programmer perspective.
Some more programmer tools: Java, Tcl, Perl, PHP, Lisp, Ruby. Comparing
Python to these makes sense. I think comparing Matlab to any of those
would be absurd. Have a look at modpython.org - is there a need for a
similar modmatlab?

Now, back to the scientist perspective.

In 1999, I was starting my M.Sc. in astrophysics and had to select my
data analysis tools. I needed the standard scientific tools:
scripting, numerics, graphics - Matlab + shell is good enough for
this. But I also needed a library for FITS file processing, which was
not available in Matlab. So Matlab alone was not enough.

Matlab + IRAF + shell was one alternative. Shell + IDL (Interactive
Data Language) was another. There were also other possibilities
(Fortran for numerics, C or Ftools for FITS). To cut it short, after a
while I ended up with shell + IDL as my main tools, occasionally using
the others.

About two years later my scripts were so complex I decided to learn a
scripting language. I was lucky enough to choose Python. Soon I found
pyraf, pyfits and numarray, later gnuPlot.py and matplotlib - IDL was
no longer needed. Python was enough.

Then one day I was looking for a postdoc position. I found something
else, and now I do text mining. I still need the science tools:
scripting, numerics, graphics.

I also need:
1) Regular expressions
2) XML library
3) Database interface

Python covers it all. I think Matlab has a Database interface, but how
about the others?

--
Juho Schultz

Dec 8 '06 #8

Allen wrote:
Does anyone agree with me?
If you have used Matlab, welcome to discuss it.
I'm sorry Allen, but Python is heading on the long road to being Lisp.
Matlab will have to wait its turn ;-)

Dec 9 '06 #9

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

Similar topics

9
2681
by: Carl | last post by:
I have been using Python for quite some time now and I love it. I use it mainly for explorative computing and numerical prototyping, ie testing and trying out different kinds of algorithms and computational schemes. The use of Python as my first-choice language has made me extremely productive. Now, I have always believed that Python is a poor performer in terms of numerical speed. My experience, however, is that the efficient use of...
3
4704
by: Ali | last post by:
How to use python in matlab?
4
2767
by: dataangel | last post by:
I'm a student who's considering doing a project for a Machine Learning class on pathing (bots learning to run through a maze). The language primarily used by the class has been Matlab. I would prefer to do the bulk of the project in python because I'm familiar with pygame (for the visuals) but I already have a lot of AI code written in Matlab. I'd like to be able to call Matlab code from within python. I'm not sure this is possible. My...
53
4408
by: Michael Tobis | last post by:
Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. I would welcome comments and corrections, and would be happy to contribute some version of this to the Python website if it is of interest. ===
9
5300
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 rather restricted facilities for doing other things than standard mathematical work. Does anyone know of good techniques (or readily available software) for achieving a cross-language support between Python and Matlab? Carl
4
2346
by: wang frank | last post by:
Hi, While comparing the speed of octave and matlab, I decided to do a similar test for python and matlab. The result shows that python is slower than matlab by a factor of 5. It is not bad since octave is about 30 time slower than matlab. Here is the result in matlab: Elapsed time is 0.015389 seconds.
4
13758
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 from Python! Any suggestions would be appriciated!
1
1956
by: Rolf Wester | last post by:
Hi, is there a tool to automatically translate Matlab source to Python/numpy code? Regards Rolf
55
2971
by: sturlamolden | last post by:
I have recently been playing with a kd-tree for solving the "post office problem" in a 12-dimensional space. This is pure cpu bound number crunching, a task for which I suspected Python to be inefficient. My prototype in Python 2.5 using NumPy required 0.41 seconds to construct the tree from 50,000 samples. Unfortunately, searching it felt a bit slow, finding the 11 nearest-neighbours of 1,000 points took 29.6 seconds (and there were...
0
9694
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10583
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10639
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9419
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7824
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3128
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.