![]() ![]() ![]() As of this writing Matlab has poor package importing capabilities (specifically for classes) and with short top level package names it is expected that in general it will be preferable to type the full name of the package rather than importing and running the function without the package name. In this case join doesn't make much sense without cellstr. ![]() Where possible functions should be named with the parent in mind: See the definition of the function on how to use it. I tend to prefer parsing of optional inputs using: I try to reduce function outputs and instead return objects if further analysis or interpretation may be needed. Adding more packages increases the calling depth. My plan is to have further organization occur via web documentation which breaks up these packages into further sub-types. Where possibly I would like to limit the depth to two packages. This class was copied from some online exchange and it basically attempts to hide methods of the handle class, cleaning up things like tab completion and the default methods display. Most of the functions are prefixed with the package 'sl'.įor example, one class I use a lot is called handle_light. This library will probably always be a work in progress. When possible, it is desirable to add functionality (read options) to a function instead of creating a new one with a slight difference. One of the goals of the standard library is to try and provide organized code that does things well. As such many different versions might exist in public for doing nearly the same thing. They are cheap in the sense that they take minimal effort to create. IMHO Matlab has a terrible habit of encouraging cheap functions that live in the global namespace. When I would make a change or update to the function it was difficult to propagate. When I began work different repositories, I found myself copying specific functions that I needed from other repositories. This repository was created in order to supplement other projects that I was working on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |