rbmatlab 0.10.01
|
00001 function rv = doxygen(param1, param2) 00002 % function rv = doxygen(param1, param2) is ignored 00003 % Here comes a short description text 00004 % 00005 % After the first empty documentation line, paragraphs of the detailed 00006 % description begin. 00007 % 00008 % Here, you have the following formatting possibilites: 00009 % Adding LaTeX code in the text with \verbatim @f$ \sum_{n=0}^N \frac{1}{n} @f$ \endverbatim 00010 % @f$ \sum_{n=0}^N \frac{1}{n} @f$ or as an 00011 % equation block with @verbatim @f[ \sum_{n=0}^N \frac{1}{n}. @f] @endverbatim. 00012 % @f[ \sum_{n=0}^N \frac{1}{n}. @f] Doxygen commands 00013 % always begin with an at-character(\@) OR a backslash(\\). 00014 % 00015 % Words prepended by \\c are written in a \c type-writer font. 00016 % Words prepended by \\b are written in a \b bold font. 00017 % Words prepended by \\em are written in an \em emphasized font. 00018 % 00019 % Blocks starting with @@verbatim or @@code and are ended with @@endverbatim or 00020 % @@endcode are written unformatted in a type-writer font and are not 00021 % interpreted by doxygen. 00022 % 00023 % Example: 00024 % @verbatim 00025 % /| |\ 00026 % ( |-| ) 00027 % ) " ( 00028 % (>(Y)<) 00029 % ) ( 00030 % / \ 00031 % ( (m|m) ) hjw 00032 % ,-.),___.(,-.\`97 00033 % \`---\' \`---\' 00034 % @endverbatim 00035 % 00036 % Paragaphs starting with line ending with a double-colon: 00037 % are started with a bold title line 00038 % 00039 % If you want to reference a function that is elsewhere documented append 00040 % brackets and write @verbatim doxygen() @endverbatim in order to create a link 00041 % for doxygen(). 00042 % 00043 % If, however, a double-colon at the end of a line is succeeded by: 00044 % whitespace characters, like spaces or tabulators the line is not written in a 00045 % bold font. 00046 % 00047 % @note As regularly commands like @verbatim \c @f$, @f$ @f[, @f] @endverbatim 00048 % look too distracting in matlab documentation output, the following shortcust 00049 % exist: The doxygen filter translates 00050 % - @verbatim 'word' to \c word @endverbatim resulting in the output: 'word', 00051 % - @verbatim `x` to @f$x@f$ @endverbatim resulting in the output: `x` and 00052 % - @verbatim ``x`` to @f[x.@f] @endverbatim resulting in the output: ``x``. 00053 % 00054 % You therefore need to be careful with the use of characters @verbatim ' ` 00055 % @endverbatim. If you want to say something about the transposed of a Matrix 00056 % 'A', better do it in a Tex-Environment as `A' * B'` or in a verbatim/code 00057 % environment as 00058 % @code A' * B' @endcode 00059 % 00060 % Listings can be added by prepending lines with a dash(-) 00061 % - list 1 item which can also include 00062 % newlines 00063 % - list 2 item 00064 % - and they can be nested 00065 % - subitem 2 00066 % . 00067 % - list 3 item 00068 % 00069 % and they are ended by an empty documentation line. 00070 % 00071 % Enumerations can be added by prepending lines with a dash and hash (-#) 00072 % -# first item 00073 % -# second item 00074 % -# third item 00075 % 00076 % Lines beginning with the words "Parameters" or "Return values" start a block 00077 % of argument respectively return argument descriptions. 00078 % 00079 % Parameters: 00080 % param1: first parameter 00081 % 00082 % Return values: 00083 % rv: return value 00084 % 00085 % A line beginning with the words "Required fields of", "optional fields of" or 00086 % "generated fields of" start a block for descriptions for fields used by the 00087 % parameters or generated for the return values. 00088 % 00089 % Required fields of param1: 00090 % test: Description for required field param1.test 00091 % 00092 % Optional fields of param2: 00093 % test2: Description for optional field param2.test2 00094 % 00095 % Generated fields of rv: 00096 % RB: Description for generated field rv.RB 00097 % 00098 % 00099 00100 % After the first non-comment line the function body begins: 00101 00102 %| Comment blocks starting with %| are interpreted as Doxygen documentation 00103 % blocks and can include doxygen commands like 00104 00105 %| \todo There needs to be done something in this file 00106 00107 % fields of parameters that are used in the function body are added to the 00108 % required fileds list automatically, if they are not documentated yet. 00109 param1.auto_added; 00110 00111 param2.auto_added; 00112 00113 % fields of return values that are assigned somewhere in the function body are 00114 % also added automatically to the list of generated fields 00115 rv.auto_added = 1; 00116 rv.sub.auto_added = 2; 00117 00118 param1.sub.auto_added; 00119 00120 %| \docupdate