Hi, Thanks for taking up this challenge :-)
man, 12 10 2009 kl. 13:08 +0200, skrev Eric Chassande-Mottin: > here is a possible implementation of textread.m: First, could you include a license statement in the code you post? I know it seems silly when the code is just being drafted, but we really need to get the license straight from the start. About the function, then I tried loading the file you previously sent: # comment # comment 1 2 3 Using your code, I get a = textread ("file.txt", "%s") warning: setstr is obsolete and will be removed from a future version of Octave; please use char instead a = { [1,1] = # [1,2] = # [1,3] = 1 } whereas Matlab gives me a = '#' 'comment' '#' 'comment' '1' '2' '3' So, results aren't quite right yet. I can't figure out exactly what Matlab does as I find the documentation incomprehensible :-( Søren ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev