Edit this page | Log in

File Exchange Submission Guidelines

Authored by the MATLAB and Simulink user community on the MATLAB Wiki.

Table of contents

Code

The code of the submission fulfills the following criteria:

Format

The format of the submission fulfills the following criteria:

Contents

To be of interest to the users of MATLAB the submission should meet one of the following criteria:

Directory Structure

For a submission to be considered for File Exchange Select, it should have the following directory structure, though some of the elements listed below are optional.

/                   (main directory)
  Contents.m        (directory contents file, if more than one file is present)
  demo/             (demo subdirectory)
  demo/html         (html subdirectory for any published M-file demos)
  doc/              (documentation subdirectory, optional)
  test/             (demo subdirectory)
  test/test_main.m  (test kickoff file)

Here is a description of each subdirectory.

demo

Published M-files (http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/noteboo2.html) are recommended for demonstrating code, as these can be previewed on the File Exchange before the download takes place. Published M-files must be MATLAB scripts, but the scripts can demonstrate the behavior of the various functions in the submission.

doc (optional)

The doc directory contains documentation that is distinct from the help that is provided as part of the M-files, although it might be derived from it. We have no standard for this yet. One promising approach is to use an automatic doc generator (like Guillaume Flandin's M2HTML) to produce HTML documentation from the M-files.

test

This subdirectory is required for all submissions and should contain an m-file called test_main.m. The minimum test permitted would exercise as much code of the submission as possible and exit without error (use the Profiler to check code coverage). More elaborate tests, including negative testing, are welcome but not required.

Example

This page shows the abstract description of the files in a submission. For a concrete example, see the Multiplication Toolbox.

Retrieved from "http://matlabwiki.mathworks.com/File_Exchange_Submission_Guidelines"

This page has been accessed 5956 times. This page was last modified 21:25, 26 Sep 2008.