From bug-request at octave dot org Thu Dec 8 13:13:23 2005 Subject: Re: Can I submit a ver.m and license.m? From: Bill Denney To: William Poetra Yoga Hadisoeseno cc: bug at octave dot org Date: Thu, 8 Dec 2005 14:12:13 -0500 (EST) On Fri, 9 Dec 2005, William Poetra Yoga Hadisoeseno wrote: > On 11/30/05, John W. Eaton wrote: >> Also, it seems that for x = ver, Matlab returns a structure with the >> fields Name, Version, Release, and Date. I think it would be best for >> ver.m to always build that structure, then either return or display it >> depending on whether nargout == 0. > > Oh, I didn't know about this behaviour. The documentation says that we > need to supply a string (as in x = ver('product') to get a return > structure. How does Matlab actually behave? In Matlab 7.0SP2, any output arguements give the full structure: >> a = ver a = 1x20 struct array with fields: Name Version Release Date >> Bill -- "I argue very well. Ask any of my remaining friends. I can win an argument on any topic, against any opponent. People know this, and steer clear of me at parties. Often, as a sign of their great respect, they don't even invite me." -- Dave Barry ------------------------------------------------------------- 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 -------------------------------------------------------------