Comparison: Object oriented programming in Matlab (Pre R-2008 and Post R-2008)

3 views (last 30 days)
Hi, I've recently started to learn Object-Oriented Programming to develop a toolbox for nonlinear control algorithms (optimization-based)in Matlab. I came across a book "A Guide to MATLAB Object-Oriented Programming" by A. H. Register from year 2007. It uses old syntax for OOP in Matlab and read some threads that this old syntax is obsolete but still supported in Matlab. The new syntax looks more intuitive and easy to understand and somewhat close to C++ class. Before I start to implementing code, I need to get some expertise opinions regarding pros and cons of each syntax according to the following criteria:
  1. Performance regarding execution time: My algorithms will be based on nonlinear optimization techniques, therefore, performance is the most important key factor. Which OOP syntax leads to better execution time for the same problem?
  2. Support: Will old OOP-syntax be supported in the future releases?
If there are some other criteria related to the pros and cons of OOP-syntax's, I'll be very glad to know.
Many thanks in advance.
Regards, Saif
  5 Comments
Adam
Adam on 28 Mar 2017
Certainly it sounds like it is worth redesigning to OOP. Performance can always be considered afterwards too using the profiler.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!