[5f391e]: isoctave.m  Maximize  Restore  History

Download this file

19 lines (15 with data), 379 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
function t=isoctave()
%ISOCTAVE True if the operating environment is octave.
% Usage: t=isoctave();
%
% ISOCTAVE returns 1 if the operating environment is Octave, otherwise
% 0 (Matlab)
% AUTHOR : Peter Soendergaard.
% TESTING: NA
% REFERENCE: NA
persistent inout;
if isempty(inout),
inout = exist('OCTAVE_VERSION','builtin') ~= 0;
end;
t = inout;
%OLDFORMAT

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks