Re: OOPS in matlab



"kk KKsingh" <akikumar1983@xxxxxxxxx> wrote in message <ho26gn$ibo$1@xxxxxxxxxxxxxxxxxx>...
"kk KKsingh" <akikumar1983@xxxxxxxxx> wrote in message <ho167k$soa$1@xxxxxxxxxxxxxxxxxx>...
> What is advantage of using OOPS style in matlab......should i shift my coding style to oops type....I have done oops style in java before...but java libraries are big so doing oops in it makes sense what about in matlab ?
> > And can you recommend any book! A Guide to MATLAB Object-Oriented Programming 2007 deals with old classes, reviews in amazon doesnot seems very positive .......
> > > Few people from academics say that OOPS doesnot make sense in matlab...i never got their point....
> > > Thanks
> > KK


Whole question is do u think adopting oops in matlab is a good thing ! will it will make matlab codes better usable !

The Mathworks seems to think OOP is a good idea
1. They have added this new support for OOP although there was little(?) demand from the users
2. I found 508 files in my Matlab R2009b installation, which contain the word "classdef" (university license, a dozen+ toolboxes)

I try to learn and use OOP with Matlab without previous experience of OOP. That is both frustrating and rewarding. Some points:
1. OOP is not for small "use once or twice and forget" programs. Many user programs belong to this category.
2. Matlab has some support for functional programming, FP. FP is better than OOP for some constructs. 3. Matlab is dynamic and most texts on Design Patterns (e.g GOF) target compiled languages. See http://norvig.com/design-patterns/.
4. There is no book on OOP/D with (the new) Matlab - I'm quite sure. 5. The Matlab documentation avoids design. The string, "Design Pattern", doesn't appear but in the titles of a couple of references. 6. The Mathworks are very slow to build a "standard" library - will they ever do that? 7. OOP is not frequent neither here in the newsgroup nor in the FEX
8. IMO: OOP should be used in somewhat larger applications, which will be used for years /per






.



Relevant Pages

  • Re: Unit Testing For Matlab
    ... Maybe, OOP in Matlab is not the easiest way it could be, but personally ... OOP even with current way enjoyable. ... > If you follow the traditional assert_foo technique of writing tests ... possibility to write his own assertions (maybe besides assert_equals, ...
    (comp.soft-sys.matlab)
  • Re: OOPS in matlab
    ... > Whole question is do u think adopting oops in matlab is a good thing! ... They have added this new support for OOP although there was littledemand from the users ... Many user programs belong to this category. ... The Matlab documentation avoids design. ...
    (comp.soft-sys.matlab)
  • Re: Function to compares two arrays and returns indices where they are equivalent
    ... Fortran modules is not OO. ... I never said that Matlab OOP is different from other OOP, and I never said that Fortran modules are OOP. ... You can have a commercial tool with no lock-in or a free tool with lock-in. ...
    (comp.lang.fortran)
  • Re: MATLAB Student Version R2008a?
    ... I was looking forward to the 2008a release student edition, ... OOP, and Hui's post is my exact question. ... I am surprised about Mathworks response and disagree; ... "A Guide to Object-Oriented Programming in Matlab" by Andy Register ...
    (comp.soft-sys.matlab)
  • Re: Can a low-level programmer learn OOP?
    ... I have also found some articles profoundly critical of OOP. ... If it does, you'll find it easier, else choose another programming style. ... Starting in 1999 I got back into programming, but the high-level-ness of PC programming and the completely foreign language of OOP repelled me. ... Dynamic languages like Smalltalk, Python or Ruby are much more lightweight in this area, and tend to favor a much more exploratory style - sketch a quick draft on a napkin, start coding, and evolve the design while you're coding. ...
    (comp.lang.python)