From bug-request at octave dot org Sat Dec 17 15:25:39 2005 Subject: Re: [OctDev] Proposed changes to cell2mat and inclusion in Octave From: Paul Kienzle To: William Poetra Yoga Hadisoeseno Cc: bug at octave dot org Date: Sat, 17 Dec 2005 16:24:21 -0500 On Dec 13, 2005, at 9:19 PM, William Poetra Yoga Hadisoeseno wrote: > On 12/14/05, John W. Eaton wrote: >> On 14-Dec-2005, William Poetra Yoga Hadisoeseno wrote: >> >> | Use p instead of i as counter. >> >> Why? >> > > Because i is also the name for sqrt(-1), and according to the Matlab > docs, this is not a good practice (so I usually use p and q for > counters). I know this is the competition, but I think it's a good > suggestion. I don't really mind though ;) What do you think? I think it is better to always use 1i or 1j instead of the built in constants i and j. This frees i and j for the traditional role as integer indices. - Paul ------------------------------------------------------------- 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 -------------------------------------------------------------