Code covered by the BSD License  

Highlights from
Data Manipulation Toolbox

3.5

3.5 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 194.93 KB File ID: #15463

Data Manipulation Toolbox

by Dahua Lin

 

01 Jul 2007 (Updated 02 Jul 2007)

Manipulation of data such as string, array, cell array and struct, and a unit testing framework

| Watch this File

File Information
Description

Data Manipulation Toolbox (dmtoolbox) is a MATLAB toolbox to facilitate the general programming using various data structures such as string, arrays, cell arrays and struct arrays. Despite that MATLAB has offered a series of builtin functions to manipulate these elements, nontrivial efforts are still needed to accomplish some advanced operations. This toolbox aims at complementing some functions that MATLAB currently lacks instead of replacing the existing ones.

Here is a brief list of the functionality offered by the dmtoolbox

Common Utilities
The functions for logical judgment, conditional counting, array selection, and the computation of Cartesian product.

String Manipulation and Formatting
The functions for generating strings in different types, formatting strings, extracting information from strings, and converting strings.

Cell Array Manipulation
The functions for logical judgment, conditional counting, element selection, selective removal, and conversion of cell arrays.

Struct Array Manipulation
The functions for sorting and converting struct arrays from/to different data structures.

Mapping (Look-Up-Table)
The functions to construct maps(also known as dictionary, hash table, or loop-up-table), and map a scalar or a string to the corresponding value.

Unit Testing Framework
It is a flexible and lightweight framework with classes and functions to assist unit testing in MATLAB. You can make use of the framework to write testing functions with assertions, group them into test cases and test suites. The framework monitors the running of all test cases and records all assertion checking results and exceptions, and reports to the user as well.

Elaborate help has been provided within each m-function, with sufficient examples to show their usage. In addition, well-formated HTML help of this toolbox is made available in the MATLAB Help Browser. You can readily refer to it by finding the Data Manipulation Toolbox in the list of MATLAB Help Contents or simply typing dmdoc in MATLAB command line.

To assure the quality, a comprehensive testsuite has been written to check whether all functions work properly. After installing the toolbox, you may type in dmtoolbox_test to run the tests to verify that the toolbox can work normally in your MATLAB environment. The whole testsuite is written based on the unit testing framework offered in the toolbox, which in itself is a good example to show how to use the testing framework.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
05 Jul 2007 Luke Chen  
06 Jul 2007 Dan Kominsky

I can't get it to work. I keep getting an "Invalid MEX-file" error. I'm running R2007a. I tried, dmtoolbox_install('-mex') but since the mex files are in C++ the built in compiler can't handle them. Oh well.

06 Jul 2007 Dahua Lin

Dan Kominsky. If you are in R2007a, I think you may not need to recompile the mex-files. The original mex files can work. If you intend to re-compile them, a compiler that fully supports standard C++ is required.

09 Jul 2007 Dan Kominsky

I tried running without recompiling, but that resulted in the following error:
??? Invalid MEX-file 'Z:\MATLAB\fxdownloads\dmtoolbox_v1_0015463\utils\private\counttrue_cimp.mexw32': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Would you recommend g++ as the compiler?

05 Feb 2008 Jose Garces-Vargas

Dear Dahua,

I'm work in R2007a and I get the same error that Dan Kominsky when I run the dmtoolbox_test

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
string cell struct unit test map hash Dahua Lin 22 Oct 2008 09:17:52

Contact us at files@mathworks.com