From help-octave-request at bevo dot che dot wisc dot edu Tue Sep 14 15:51:44 1999 Subject: error with "end" From: "Adam Balgach" To: "Octave Mailing List" Date: Tue, 14 Sep 1999 15:52:54 -0500 why does octave continually give me an error with the code... "b = reshape(x,s(n+1:end));" ^ specifically octave tells me that "parse error near lin 16 of file..." its has to do with "n+1:end" anyone know why this doesnt work? im trying to port all my matlab code to octave, and i need this function to be working by tommrow morning. thanks. (the code comes from Matlabs "shiftdim.m"... if (n > 0) n = rem(n-1,ndims(x))+1; if (isequal(siz(1:n),ones(1,n))) s = [siz ones(1,n+2-length(siz))]; b = reshape(x,s(n+1:end)); ^ thanks. adam balgach balgacha at purdue dot edu --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------