[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Octave

From: John C. Campbell
Subject: Re: Detecting Octave
Date: Thu, 12 Oct 95 09:29:23 -0500

Eyal Doron <address@hidden> 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
  foobar = 0

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                    :  
address@hidden               :  
University of Wisconsin-Madison     :  
Dept. of Chemical Engineering       :  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]