Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.129.390 Times

checkfield 1.0

  Date Added: June 29, 2013  |  Visits: 264

checkfield

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)

CHECKFIELD intend to be a facility to handle varargin in functions. It provides error checks, default, and structuring for the varargin. k = CHECKFIELD(field,listfield) where field is a string checks if field is one of the fields in the cell listfield given in second argument. It returns the index of the found field in the list if successful. K = CHECKFIELD(argin,listfield) where argin is a cell of arguments pair, first checks if field/value come by pair, and then if the fields are in the cell listfield given in second argument. It returns the array of index of the fields in the list if successful. S = CHECKFIELD(field,value,TESTVALID) checks the contents of the specified value to be valid for the field 'field', by applying it to the function handle TESTVALID, which must be a function that returns a boolean. S = CHECKFIELD(field,value,TESTVALID,ACCEPTABLEVALUES) also checks the contents of the specified value to be within a cell array given by ACCEPTABLEVALUES. S = CHECKFIELD(argin,listfield,...) where all of these arguments are cells, does all these tests for each pair field/value. The three later syntaxes return a struct for which each field as for name the name of the given field and for value the value checked. S = CHECKFIELD(argin,listfield,...,S) does the same, but updates the previous fields of S (which can be e.g. defaults) with the new values checked. All values can be cell array. In this case, the testvalid is applied to each cell element, and the corresponding field in the returned struct is a cell. EXAMPLE: Suppose you are writing a m-file that would take variable argument number (varargin):------------------------------------function M = getimagenames(varargin)listfields = { ... 'Method',... 'First' };testvalid = { ... @ischar, ... @(i) iswhole(i) & i>0 };acceptablevalues = { {'Range', 'All', 'Index'}, ... {} }; default = struct( ... 'method','all', ... 'first',1);S = checkfield(varargin,listfields,testvalid,acceptablevalues,default);------------------------------------ S is now a struct with fields 'Method' and 'First' whose value are default unless the user entered new values for them, such as with getimagenames('first',3) See also: VARARGIN Author: Jean-Yves Tinevez Work address: Max-Plank Insitute for Cell Biology and Genetics, Dresden, Germany. Email: tinevez AT mpi-cbg DOT de November 2007; Permission is given to distribute and modify this file as long as this notice remains in it. Permission is also given to write to the author for any suggestion, comment, modification or usage.

Requirements: No special requirements
Platforms: Matlab
Keyword: 039all039 039first039 039first0391s Acceptablevalues Applied Element Getimagenamesvararginlistfields Index Ischar Iswholei Method Range Returned Testvalid Vararginfunction
Users rating: 0/10

License: Freeware Size: 10 KB
CHECKFIELD RELATED
Security Tools  -  JQuickBase 0.0.4
Java API to realize quick ISAM (Index Sequential Access Method) functionality for local application. This includes database files and scalable B+Tree (B-plus-tree) index files. Supports data backup and strong file encryption using Twofish and...
111.04 KB  
Image Galleries  -  Gradual Element Fader Script 1.1
This is a generic fader script that can be applied to element(s) on the page to make them gradually fade into view when the mouse rolls over them, and fade out when out.Just give the desired elements on the page a "class=gradualfader" to kick...
614.4 KB  
Libraries  -  Device::Audiotron 1.02
Device::Audiotron provides a tie-in into the API included in the latest firmware for Voyetra Turtle Beachs Audiotron. SYNOPSIS use Device::Audiotron; $at = new Device::Audiotron("Audiotron IP address","username","password"); if(!$at){die...
4.1 KB  
Libraries  -  Finance::BDT 0.01
Finance::BDT is a Perl module that implements BDT yield curve model. SYNOPSIS use Finance::BDT; use Data::Dumper my @y = (0, 0.0283, 0.029, 0.0322, 0.0401, 0.0435, 0.0464, 0.0508, 0.0512); ## YTM on strips my $vol = 0.20; ## constant...
4.1 KB  
Programming  -  JaqLib 1.0
It heavily makes use of Java Generics and follows the idea of fluent interfaces. JaqLib only uses standard Java features like generics or dynamic proxies. It does not need any pre or post compile steps. WHERE conditions can...
122.88 KB  
Networking  -  Index Authors page 1.0
With this plugin, you will be able to display an index with all your authorss, sort alphabeticaly. The shortcode is [authorsindex].Options are: *ul => the class of you ul element (default = iapAlpha) *li => the class of you li element (default =...
10 KB  
Modules  -  Indexing HTML Attributes 6.x-1.0
This module allows site maintainer to index HTML Element's attribute information in search indexes. It also works with apachesolr search modules.INSTALLATION- This module requires http://drupal.org/project/simplehtmldom to parse the DOM tree.-...
10 KB  
Security Tools  -  Index.dat Viewer 2.1
A tool to view your index.dat files. In case you don't know what these files are, they are files where Windows secretely store information about your browsing habits. Just download the app to see what they store there. You will be surprised.
282 KB  
Security Tools  -  Index.dat QV 1.0
Index.dat QV is an extension of "scaled down" version of our popular Index.dat Suite software. In this case, Index.dat QV has one purpose and one purpose only, to allow you to view and save the contents of your index.dat files, without the added...
1.98 MB  
Network & Internet  -  Index.dat Analyzer 2.0
Index.dat Analyzer is a tool to view, examine and delete contents of index.dat files. What are index.dat files? Index.dat files are hidden files on your computer that contain all tracks of your online activity, where have you been on...
906.56 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB  
Development Tools  -  save2word 1.0
A simple function to copy figure from MATLAB into MS Word automatically. It is a modification of saveppt (a function in File exchange) that save figures to MS Powerpoint.
10 KB