[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [changeset: ver.m] Distinguishing Octave from Matlab
From: |
John W. Eaton |
Subject: |
Re: [changeset: ver.m] Distinguishing Octave from Matlab |
Date: |
Wed, 20 Feb 2008 00:32:56 -0500 |
On 19-Feb-2008, Ben Abbott wrote:
|
| On Feb 19, 2008, at 2:02 PM, John W. Eaton wrote:
|
| > On 19-Feb-2008, Ben Abbott wrote:
| >
| > | >> <snip>
| > | >
| > | > Ok, I've attached a diff respecting mercurial version, as well as
| > | > the complete m-file.
| > | >
| > | > Distinguishing between Matlab and Octave may be done as,
| > | >
| > | > v = ver;
| > | > if (strcmpi(v(1).Name,'matlab')
| > | > % Matlab code here
| > | > elseif (strcmpi(v(1).Name,'octave')
| > | > % Octave code here
| > | > end
| > | >
| > | > Ben
| > | >
| > | > <ver.diff><ver.m>
| > |
| > |
| > | Same content as the prior diff, but produced by "hg export ..."
I applied this changeset with a few style fixes.
Thanks,
jwe
- Re: Distinguishing Octave from Matlab, (continued)
- Re: Distinguishing Octave from Matlab, Ben Abbott, 2008/02/15
- Re: Distinguishing Octave from Matlab, David Bateman, 2008/02/15
- Re: Distinguishing Octave from Matlab, Ben Abbott, 2008/02/15
- Re: Distinguishing Octave from Matlab, David Bateman, 2008/02/15
- Re: Distinguishing Octave from Matlab, Ben Abbott, 2008/02/15
- Re: Distinguishing Octave from Matlab, Ben Abbott, 2008/02/15
- Re: [changeset: ver.m] Distinguishing Octave from Matlab, Ben Abbott, 2008/02/19
- Re: [changeset: ver.m] Distinguishing Octave from Matlab, John W. Eaton, 2008/02/19
- Re: [changeset: ver.m] Distinguishing Octave from Matlab, Ben Abbott, 2008/02/19
- Re: [changeset: ver.m] Distinguishing Octave from Matlab,
John W. Eaton <=
Re: Distinguishing Octave from Matlab, Eric Chassande-Mottin, 2008/02/15