Arguments
Often one desires to write a function that takes a large number of optional arguments. One way to do this is to allow for an arbitrary number of option name-value pairs in the function argument:function r = f(a,b,c,name1,value1,...)This method has the advantages of:1) Allowing those using the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): loadOptions Download |
SIMPGRIDSEARCH Multi-dimensional unconstrained nonlinear minimization using grid search + Simplex method. X = SIMPGDSEARCH(OBJFUN,GDVALUES) returns a vector X that is a minimizer of the function described in OBJFUN (usually an m file: OBJFUN.M).See OBJFUN_DEMO.M for how to write an objective...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): SIMPGDSEARCH Download |
CLICKUICONTROL(H) behaves as if clicking on a UIControl object. The object can be one of the following: pushbutton, checkbox, radiobutton, togglebutton, slider, listbox, popupmenu. The Value property of the object will be appropriately set, and the object's Callback is called (ButtonDownFcn will...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): CLICKUICONTROL Download |
sysshift checks whether two matrix M1 and M2 are systematically shifted against each other by calculating correlations across a range of shifted origin. This is helpful e.g. if two different digital elevation models of the same area are to be tested for systematic misregistration.At this point,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Sysshift Download |
function ire(x, signal)Interactive resolution enhancement function for data in the arguments "x,signal". Displays sliders for real-time control of 2nd and 4th derivative weighting factors (factor and factor2) and smooth width. (Larger values of factor1 and factor2 will reduce the peak width but...
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (40): Interactive resolution enhancement function Download |
Utility function that makes it easier to work with variable number of input arguments. GETVARARGIN allows:*An optional logical check on the inputs (ie, check input type, range etc), issuing an error on the calling function if condition are not met.*An easy way to assign default values*Input...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): getvarargin Download |
This function reloads the .m files to the file editor if you accidentally close it, or when switching revs. If run w/ no arguments, reloads .m files that were open at the end of the last session.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): restore_editfiles Download |
PURPOSE:This MATLAB mex function fetches the name of the current user. The function is only for windows operating system. It was tested for MATLAB release 12.1 running under windows 12.1COMPILE AND LINK AS A MATLAB MEX DLL:typemex getusername.con MATLAB command prompt to compile and link the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Getusername Download |
The TILEFIGS program is used to display multiple figures simultaneously by tiling the screen with all open figures. TILEFIGS usage: tilefigs ([nrows ncols],border_in pixels)Restriction: maximum of 100 figure windowsWithout arguments, tilefigs will determine the closest N x N grid for all open...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): tilefigs.m Download |
TMOTUS - MATLAB GameTMOTUS is the Matlab version of the word game MOTUSHow to launch TMOTUS:>> tmotusTMOTUS lets you play with english or french words.When you launch the game it will ask you to choose the language in which you want to play, then the length of the words you will have to find and...
Platforms: Matlab
License: Freeware | Size: 153.6 KB | Download (40): TMOTUS Download |
If you have a C function with arguments that are float or pointer to float (rather than double or pointer to double) you can call the function from MATLAB and pass arguments to the function as single data types. For example, in this case we have a C file that is a highpass filter. In MATLAB ver....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): C-MEX file example for 'float' data types Download |
Different elevations cannot be identified with standard matlab functions such as surf, even changing FaceColor attribute to activate interpolation. In contrast, with this function alows one can define contour levels and different colors are applied to each level.Instead of using surf(x,y,z), you...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Plots a surface coloring by layers (using contour curves) Download |
MATLAB-Excel Single Interface (MESI)(Thanks to Russell Goyder, the original creator of this example.)WHAT IS IT?===========MESI provides the VBA subroutine "RunInMATLAB", which allows you to call your M-code from Excel using Excel Link and .NET/COM Builder without changing your VBA code.WHY DOES...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (44): MATLAB-Excel Single Interface Download |
Contemplate is a set of server-side scripts that makes it easy for web developers to separate content from code when building sites.Contemplate assembles text content, page layouts, and server-side or client-side scripts into dynamically generated or precompiled web pages based on arguments you...
Platforms: PHP
License: Freeware | Size: 143.36 KB | Download (41): Contemplate for Scripts Download |
Database Operations is a MySQL database access wrapper that can be used to manipulate records of a MySQL table.Functions of Database Operations:- Connect to a given MySQL database- Retrieve the fields of a given table- Retrieve the number of records in a table- Execute a SELECT query and retrieve...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (45): Database Operations Download |
MySQL Paging is a simple class that can return a MySQL database query results for spliting into multiple pages given the maximum number of result rows to present on each page.Usage :- Create a class object with 3 arguments: MySQL SQL query, limit of records per page, MySQL connection handle-...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (41): MySQL Paging Download |
This script can be used to show paginated listings updated using AJAX. It takes as arguments the an array of data entries to display in the pages and the limit number of entries to display per page.The script generates HTML and javascript for navigation links to update the listing without...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (42): Paginatorfer Download |
PgProcedures defines the __call function to accept calls to PostgreSQL stored procedures by the name of function of the class that is called.The function arguments are converted to parameters that get passed when the procedure is called.
Platforms: PHP
License: Freeware | Size: 10 KB | Download (41): PgProcedures Download |
The MySQLi extension functions are used to establish a connection with a MySQL server.MyEzSQL executes SELECT, INSERT, UPDATE and DELETE queries from lists of arguments that define the tables, fields, field values and condition clauses.
Platforms: PHP
License: Freeware | Size: 20.48 KB | Download (41): MyEzSQL Download |
PhpReportsMSSQL can generate report HTML pages from given SQL database queries. It supports either MySQL and Microsoft SQL server databases.PhpReportsMSSQL takes as parameters the database type, the database access arguments, an SQL query strings, the title of the report page, number of records...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (46): PhpReportsMSSQL Download |