matlab-class

Is MATLAB OOP slow or am I doing something wrong?

别说谁变了你拦得住时间么 提交于 2019-11-26 03:14:36
问题 I\'m experimenting with MATLAB OOP, as a start I mimicked my C++\'s Logger classes and I\'m putting all my string helper functions in a String class, thinking it would be great to be able to do things like a + b , a == b , a.find( b ) instead of strcat( a b ) , strcmp( a, b ) , retrieve first element of strfind( a, b ) , etc. The problem: slowdown I put the above things to use and immediately noticed a drastic slowdown. Am I doing it wrong (which is certainly possible as I have rather limited