About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconInputPreprocessor (Scripts) Publisher's description

InputPreprocessor provides an alternate interface to the class

InputPreprocessor provides an alternate interface to the class, inputParser, together with the function, validateattributes. It exposes most of the functionalities of theese two. In addition to the constraints (attributes) of validateattributes the user can add new constraints.

The goal is that InputPreprocessor shall help the user to make fewer trivial mistakes and write better code. That is, write code that is easier to understand and maintain. Furhermore, the code shall be an essential part of the documentation of the input arguments.

InputPreprocessor is not for all functions/methods. Especially, it should not be used when speed is a critical isssue.

ipp = InputPreprocessor( CA );
ipv = ipp.parse( input_argument_list );

where CA is a cell array with one row for each input argument of the function/method. The columns contain:
1. integer {1,2,3} chooses between: {addRequired,addOptional,addParamValue}
2. the name of the input argument
3. the default value of the input argument
4. the names of the classes that are allowed for the value
5. constraints on the value of the input argument

ipv is a name/value structure, which holds the complete and validated input data.

Documentation: InputPreprocessor_demo.html, which is generated by PUBLISH, discusses and demonstrate the use and behaviour of InputPreprocessor. The code is commented. However, there is no manual.

InputPreprocessor is a class under construction. However, it allready helps me make fewer trivial mistakes and write better code. I think it is worth while to develop it further.

I would appreciate comments and critisism on this contribution. I have no experience of other modern programming environment. I fear I'm inventing a wheel and that the current version of InputPreprocessor is more like a square.

System Requirements:

MATLAB 7.9 (2009b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

InputPreprocessor (Scripts) Tags:

Click on a tag to find related softwares

Is InputPreprocessor (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.