Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GNU Octave
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Syntax compatibility=== There are a few purposeful, albeit minor, [http://octave.org/wiki/index.php?title=FAQ#Porting_programs_from_Matlab_to_Octave syntax additions] {{Webarchive|url=https://web.archive.org/web/20120426060857/http://octave.org/wiki/index.php?title=FAQ#Porting_programs_from_Matlab_to_Octave |date=2012-04-26 }}: # [[Comment (computer programming)|Comment]] lines can be prefixed with the # character as well as the % character; # Various [[C (programming language)|C-based]] operators [[Increment operator|++]], [[Decrement operator|--]], [[Augmented assignment|+=]], *=, /= are supported; # Elements can be referenced without creating a new variable by cascaded indexing, e.g. [1:10](3); # [[String (computer science)|String]]s can be defined with the double-quote " character as well as the single-quote ' character; # When the variable type is [[Single-precision floating-point format|single]] (a single-precision floating-point number), Octave calculates the "[[mean]]" in the single-domain (MATLAB in [[Double-precision floating-point format|double-domain]]) which is faster but gives less accurate results; # Blocks can also be terminated with more specific [[Control structure]] keywords, i.e., endif, endfor, endwhile, etc.; # Functions can be defined within scripts and at the Octave prompt; # Presence of a do-until loop (similar to [[Do while loop|do-while]] in C).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)