Thread Subject: OOPS in matlab

Subject: OOPS in matlab

From: kk KKsingh

Date: 20 Mar, 2010 00:52:04

Message: 1 of 5

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

Subject: OOPS in matlab

From: kk KKsingh

Date: 20 Mar, 2010 10:03:03

Message: 2 of 5

"kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho167k$soa$1@fred.mathworks.com>...
> 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 !

Subject: OOPS in matlab

From: per isakson

Date: 21 Mar, 2010 18:18:02

Message: 3 of 5

"kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho26gn$ibo$1@fred.mathworks.com>...
> "kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho167k$soa$1@fred.mathworks.com>...
> > 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

 
  

  

   

Subject: OOPS in matlab

From: kk KKsingh

Date: 22 Mar, 2010 19:40:19

Message: 4 of 5

"per isakson" <poi.nospam@bimDOTkthDOT.se> wrote in message <ho5nsq$4cm$1@fred.mathworks.com>...
> "kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho26gn$ibo$1@fred.mathworks.com>...
> > "kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho167k$soa$1@fred.mathworks.com>...
> > > 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
>
>
>
>
>
>
>


What about A Guide to MATLAB Object-Oriented Programming ! I had some experience with java and C # BUT oops in MATLAB is new thing for me

Subject: OOPS in matlab

From: per isakson

Date: 23 Mar, 2010 16:32:23

Message: 5 of 5

"kk KKsingh" <akikumar1983@gmail.com> wrote in message <ho8h33$ntj$1@fred.mathworks.com>...
> "per isakson" <poi.nospam@bimDOTkthDOT.se> wrote in message
<snip>
> What about A Guide to MATLAB Object-Oriented Programming ! I had some experience with java and C # BUT oops in MATLAB is new thing for me

Why do you want a book? All the information you need is in the "Matlab OO-programming" (pdf-file) and the on-line help. They are booth good.

/ per

Tags for this Thread

Everyone's Tags:

oop

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
oop per isakson 21 Mar, 2010 14:47:09
rssFeed for this Thread

Contact us at files@mathworks.com