Classdef
These tutorials, created using Matlab's publishing tools, cover the following topics in depth: getting started, the matrix, functions, flow of control, debugging & profiling, strings, cells, structs, plotting, the symbolic toolkit, calling external code, and object oriented programming using the...
Platforms: Matlab
License: Freeware | Size: 1.17 MB | Download (46): Matlab 2008a Advanced Tutorials Download |
A polynomial is a mathematical expression involving a sum of powers in one or more variables multiplied by coefficients. A general multivariate polynomial is captured with the syntaxp = sum( c_i * prod( x_j^p_ij ) ) + kwhere the summation is over i, the product over j, and c_i is the set of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 40.96 KB | Download (43): Symbolic polynomials Download |
When The MathworksdlT« introduced MATLABdlT« version R2008a they included a new object oriented format called classdef. This addition greatly expanded the object oriented capabilities of MATLABdlT« at the m-file level. There were also two new mex API functions introduced at that same...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 40.96 KB | Download (44): mxGetPropertyPtr C-mex function Download |
mlunit_2008a originally began as an update to mlUnit (http://sourceforge.net/projects/mlunit/http://sourceforge.net/projects/mlunit/), also available from MATLAB Central file exchange. The purpose was to add support for the new "classdef" style classes in MATLAB 2008a. However, I got a bit...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (48): mlunit_2008a Download |
I've found, as my projects get bigger, it is easier to use a MATLAB class to control and manage a GUI instead of manipulating the standard Matlab gui mfiles.I believe this style of GUI programming makes passing data around from different areas of gui much easier.The functionality of this example...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Example using a MATLAB Class to control a GUI Download |
parseSize - a function to aid OOP overloading of the size() method in user-defined classes. If the user provides the vector of dimensions of a hypothetical array object, parseSize will take care of the main input/output argument processing in a way that imitates the conventions of MATLAB's usual...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Overloading SIZE for Array-like User-Defined Objects Download |
If you're tired of re-typing or re-copying the same header structure over and over, newFunction may be what you're looking for.In the command window, callnewFunction myNewFunctionNameornewFunction('myNewFunctionName')First, newFunction checks for whether there already exists another function with...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Automatic template for new functions Download |
This submission defines a generic class of matrix-like objects called MatrixObj and a subclass called DataObj. Objects of the class are capable of behaving as matrices, but whose math operators (+,-,*,,.*,,etc...) and other methods can be defined/redefined from within any Mfile or even from the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (43): On-The-Fly Definition of Custom Matrix Objects Download |
Make a custom ui control that is an editbox that only allows numeric inputs. Allow a uicontrol that is an edit box that only allows numeric inputs. There are different types of inputs (ie integers, non-negative, scalars). The top level command is numericEdit. There are also sub files that are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): numeric UI Control Download |
MagicListener constructor creates a listener just like the addlistener function. The difference is the constructor accepts one more input, one object or a cell of objects, and the life cycle of the returned object will be linked also on these objects.Exemple:Without...
Platforms: PHP
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): MagicListener Download |