[changeset: ver.m] Distinguishing Octave from Matlab

Ben Abbott bpabbott at mac.com
Tue Feb 19 19:30:27 CST 2008


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 ..."
>
> Long lines were wrapped in this message, which will make it difficult
> to apply this changeset.  Please resend it as a text/plain attachment.
>
> Thanks,
>
> jwe


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ver.changeset
Type: application/octet-stream
Size: 4487 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080219/32bbd122/attachment.obj 


More information about the Help-octave mailing list