[isoctave verinfo]=isoctavemesh determine whether the code is running in octave author: Qianqian Fang, <q.fang at neu.edu> output: isoctave: 1 if in octave, otherwise 0 verinfo: a string, showing the version of octave (OCTAVE_VERSION) -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0001 function [isoctave verinfo]=isoctavemesh 0002 % 0003 % [isoctave verinfo]=isoctavemesh 0004 % 0005 % determine whether the code is running in octave 0006 % 0007 % author: Qianqian Fang, <q.fang at neu.edu> 0008 % 0009 % output: 0010 % isoctave: 1 if in octave, otherwise 0 0011 % verinfo: a string, showing the version of octave (OCTAVE_VERSION) 0012 % 0013 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net) 0014 % 0015 verinfo=''; 0016 isoctave=(exist('OCTAVE_VERSION','builtin')~=0); 0017 if(nargout==2 && isoctave) 0018 verinfo=OCTAVE_VERSION; 0019 end