Documenting our software

From BanghamLab
Revision as of 18:38, 27 October 2012 by AndrewBangham (talk | contribs) (Created page with 'Return to Software<br><br> ==Maintaining colours when copying Matlab code into the wiki== The simplest is to use webify_interaction_function(filename) from the DAr…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Software

Maintaining colours when copying Matlab code into the wiki

The simplest is to use

webify_interaction_function(filename)

from the DArT_Toolshed. Change directory into the project then call the function. It will put an HTML copy of the function into the same directory which can be copied and pasted directly into the wiki. (Note - in the wiki, indented text is rendered verbatim, e.g. the function name above.)

Finding toolbox dependencies and collecting everything a toolbox needs into a single directory

Use

myDepFun(mfile,toolboxDirectory)

which is in the DArT_Toolshed\ToolBag. myDepFun recursively finds all the .m files on which mfile depends. Those that are not in the toolboxDirectory will be copied into a subdirectory of toolboxDirectory so that a zipfile of the whole directory will include all the files needed by the toolbox.