From bug-octave-request at che dot utexas dot edu Fri Jul 8 14:40:04 1994 Subject: Column Assignment From: Benjamin Mull To: bug-octave at che dot utexas dot edu Date: Fri, 8 Jul 1994 14:40:01 -0500 (CDT) I am trying to map some columns from one matrix to another, and have run across a problem. The following example may illustrate: a=hilb(5); b(:,[1 2]) = a(:,[1 4]); This assignment does not work. In fact, the example a=hilb(5); b=ones(5); b(:,[1 2]) = a(:,[1 4]); does not work, however, the less precise assignment: a=hilb(5); b=ones(2,10); b(:,[1 2]) = a(:,[1 4]); does work. This appears to be a bug to me, or at least an inconsistency. Any explanations? Thanks, Ben