setdiff output differs from matlab

John W. Eaton jwe at bevo.che.wisc.edu
Thu Sep 18 07:26:59 CDT 2008


On 18-Sep-2008, soren at hauberg.org wrote:

| >> column_vector(2:vector_length) += row_vector(2:vector_length)
| ??? column_vector(2:vector_length) += row_vector(2:vector_length)
|                                      |
| Error: The expression to the left of the equals sign is not a valid target for
| an assignment.
| 
| So, Matlab behaves like Octave.

No, not exactly.  Matlab is complaining that += doesn't work.  The
thing on the left side of the equals sign is

  column_vector(2:vector_length) +

and that is what "is not a valid target for assignment".

jwe


More information about the Bug-octave mailing list