Octave | Matlab | |
character string syntax | str='hi' str="hi" |
str='hi' str="hi" % gives error |
for loop syntax | for ... endfor |
for ... end |
Hack using ~ as a blank variable. For example in the line [A B]=max(C), if the variable A is not needed you could write the line as [~ B]=max(C) and the the first output will not be created. This yields an error in Octave (and probably should in matlab). |
not supported | [~ B]=max(C) |
The input function in Octave does not allow the use of slash commands. | input('Input \nis:') yields: Input \nis: |
input('Input \nis: ') yields: Input is: |
There seems to be some issues with placing text in a plot on the complex plane using the text command. | not supported, use x,y instead. | text() can take complex inputs and separate the real and imaginary part for a 2 point coordinate. |
Some I/O functions such as textscan() | Get recent version, 3.4.0 or later | Included |
Some image file reading functions | Some functions not in basic mac distribution. Not sure about windows. | Included in basic distribution or various optional toolboxes |
Also make sure to note that if you are using Octave, this program's version of the function "firpm" (Remez Parks-McClellan Optimal FIR Filter Design), might be called "remez" and should work the same as "firpm" works in Matlab.
If you get something like the following error message:
??? Undefined function or method 'fft' for
input arguments of type 'double',
it means you do not have the function installed in Octave or Matlab.
So if you see this error while trying to access any of the signal
processing functions, if you are using Octave, do the following
instructions to install the Signals Package (and all of its dependency
packages), if you are using Matlab and get this message, you will need to
purchase (if for some reason you did not get the student version) and/or
install the Signal Processing Toolbox, if you can use the functions,
you should disregard the rest of this message. Some of your Octave
programs might have come with these packages pre-installed.
To install the Signal Package (and all of its dependency packages) in Octave: