Mercurial > octave-antonio
comparison scripts/general/celldisp.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | b2aca5ac54a2 |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} celldisp (@var{c}, @var{name}) | 20 ## @deftypefn {Function File} {} celldisp (@var{c}, @var{name}) |
21 ## Recursively display the contents of a cell array. By default the values | 21 ## Recursively display the contents of a cell array. By default the values |
22 ## are displayed with the name of the variable @var{c}. However, this name | 22 ## are displayed with the name of the variable @var{c}. However, this name |
23 ## can be replaced with the variable @var{name}. For example: | 23 ## can be replaced with the variable @var{name}. For example: |
24 ## | 24 ## |
25 ## @example | 25 ## @example |
26 ## @group | 26 ## @group |
27 ## c = @{1, 2, @{31, 32@}@}; | 27 ## c = @{1, 2, @{31, 32@}@}; |
28 ## celldisp(c, "b") | 28 ## celldisp(c, "b") |
29 ## @result{} | 29 ## @result{} |
30 ## b@{1@} = | 30 ## b@{1@} = |
31 ## 1 | 31 ## 1 |
32 ## b@{2@} = | 32 ## b@{2@} = |
33 ## 2 | 33 ## 2 |
34 ## b@{3@}@{1@} = | 34 ## b@{3@}@{1@} = |
35 ## 31 | 35 ## 31 |
36 ## b@{3@}@{2@} = | 36 ## b@{3@}@{2@} = |
37 ## 32 | 37 ## 32 |
38 ## @end group | 38 ## @end group |
39 ## @end example | 39 ## @end example |
40 ## | 40 ## |
41 ## @seealso{disp} | 41 ## @seealso{disp} |
78 endif | 78 endif |
79 endfunction | 79 endfunction |
80 | 80 |
81 %!demo | 81 %!demo |
82 %! c = {1, 2, {31, 32}}; | 82 %! c = {1, 2, {31, 32}}; |
83 %! celldisp(c, "b") | 83 %! celldisp(c, "b") |