comparison doc/interpreter/expr.txi @ 10228:fa0c28aff439

update documentation
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 30 Jan 2010 13:58:14 +0100
parents ea0d83b4470b
children 0d928dd9eeb8
comparison
equal deleted inserted replaced
10227:d3fc22c3071c 10228:fa0c28aff439
1000 @group 1000 @group
1001 [~, s, v] = svd (a); 1001 [~, s, v] = svd (a);
1002 @end group 1002 @end group
1003 @end example 1003 @end example
1004 1004
1005 This is cleaner and more efficient than using a dummy variable. 1005 This is cleaner and more memory efficient than using a dummy variable.
1006 It is not recommended, however, to reuse such an assignment statement as a right-hand side 1006 The @code{nargout} value for the right-hand side expression is not affected.
1007 in another expression. Currently, this works as expected, but may cease to work in future 1007 If the assignment is used as an expression, the return value is a comma-separated list
1008 releases of Octave. The @code{nargout} value for the right-hand side expression is not affected. 1008 with the ignored values dropped.
1009 1009
1010 @opindex += 1010 @opindex +=
1011 A very common programming pattern is to increment an existing variable 1011 A very common programming pattern is to increment an existing variable
1012 with a given value, like this 1012 with a given value, like this
1013 1013