From help-octave-request at bevo dot che dot wisc dot edu Thu Oct 12 09:29:24 1995 Subject: Re: Detecting Octave From: "John C. Campbell" To: help-octave at bevo dot che dot wisc dot edu (Octave mailing list) Date: Thu, 12 Oct 95 09:29:23 -0500 Eyal Doron wrote: | Hi, | I would like an .m file to detect if its running under Matlab or | Octave. Anybody have a generic solution? | | Before you start, things like | | if exist(whitespace_in_literal_matrix) I put the following in my .octaverc if exist('whitespace_in_literal_matrix') foobar = 1 else foobar = 0 end When I start Octave I see foobar = 1. I put the same code in my startup.m and in MATLAB I see foobar = 0. Is this what you wanted? John Campbell -------- John C. Campbell : jcc at bevo dot che dot wisc dot edu : University of Wisconsin-Madison : Dept. of Chemical Engineering :