You could use the following test to differentiate Octave from MATLAB:
isOctave = exist('OCTAVE_VERSION', 'builtin') ~= 0;
More Related Contents:
- Which part of this is a non-negative integer? (factorial error) [closed]
- “Undefined function ‘function_name’ for input arguments of type ‘double’.”
- For loop to split matrix to equal sized sub-matrices
- Octave / Matlab: Extend a vector making it repeat itself?
- How can I plot a function with two variables in Octave or Matlab?
- Getting FFT peaks from data
- Create a zero-filled 2D array with ones at positions indexed by a vector
- Sweep / chirp signal ends at incorrect frequency
- How can I sort a 2-D array in MATLAB with respect to one column?
- Octave/Matlab: Adding new elements to a vector
- f(x) = 1 for -0.5
- Finding islands of zeros in a sequence
- How do I set default values for functions parameters in MATLAB?
- How to select a submatrix (not in any particular pattern) in Matlab
- Matlab ode solvers: changing state and specified time
- How to divide an image into blocks in MATLAB?
- Access m-files in a subfolder without permanently adding it to the path
- Example of 10-fold SVM classification in MATLAB
- How can I find the maximum value and its index in array in MATLAB?
- Vectorizing the Notion of Colon (:) – values between two vectors in MATLAB
- Reading CSV files with MATLAB?
- What’s the difference between & and && in MATLAB?
- How can I count the number of elements of a given value in a matrix?
- Unicode characters in MATLAB source files
- How do I retrieve the names of function parameters in matlab?
- Turn a MATLAB plot into image
- How to control the margin size around subplots?
- Indexing of unknown dimensional matrix
- Implementing anonymous functions in Fortran
- Remove xticks but keep xticklabels in MATLAB