Mercurial > hg > octave-lyh
diff scripts/strings/mat2str.m @ 8442:502e58a0d44f
Fix docstrings, add examples, references and tests to string functions
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Mon, 05 Jan 2009 08:11:03 +0100 |
parents | c25094267486 |
children | cadc73247d65 |
line wrap: on
line diff
--- a/scripts/strings/mat2str.m +++ b/scripts/strings/mat2str.m @@ -36,16 +36,18 @@ ## ## @example ## @group -## mat2str( [ -1/3 + i/7; 1/3 - i/7 ], [4 2] ) -## @result{} '[-0.3333+0.14i;0.3333-0.14i]' -## mat2str( [ -1/3 +i/7; 1/3 -i/7 ], [4 2] ) -## @result{} '[-0.3333+0i,0+0.14i;0.3333+0i,-0-0.14i]' -## mat2str( int16([1 -1]), 'class') -## @result{} 'int16([1,-1])' +## mat2str( [ -1/3 + i/7; 1/3 - i/7 ], [4 2] ) +## @result{} "[-0.3333+0.14i;0.3333-0.14i]" +## +## mat2str( [ -1/3 +i/7; 1/3 -i/7 ], [4 2] ) +## @result{} "[-0.3333+0i,0+0.14i;0.3333+0i,-0-0.14i]" +## +## mat2str( int16([1 -1]), 'class') +## @result{} "int16([1,-1])" ## @end group ## @end example ## -## @seealso{sprintf, int2str} +## @seealso{sprintf, num2str, int2str} ## @end deftypefn ## Author: Rolf Fabian <fabian@tu-cottbus.de>