From help-octave-request at bevo dot che dot wisc dot edu Mon Dec 22 16:48:09 2003 Subject: Re: next problem From: Przemek Klosowski To: drewes at interstice dot com, help-octave@bevo.che.wisc.edu Date: Mon, 22 Dec 2003 17:44:58 -0500 (EST) y(:,:,:,:)=[x, x, x, x] This is a long way of saying y=[x, x, x, x]' Can anyone explain to me why do I need the transpose, i.e. why, in Matlab, y(:,:,:,:)=[x, x, x, x] and y=[x, x, x, x] are different? dff=d; i=find(d>pi); dff(i)=2*pi-d(i); Simplify, simplify: dff=d; i = d>pi ; dff(i)=2*pi-d(i); ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------