MATLAB Octave: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
Linux commands:
Linux commands:


cd - modify the current directory.
'''cd''' - modify the current directory.


pwd - print working directory.
'''pwd''' - print working directory.


Interpreter Commands:
Interpreter Commands:


clear - delete the names matching the pattern from the ''symbol table''. The pattern is a simplified regular expression, with '?', '*', '[...]'. With no arguments, all user-define variables (local and global) are deleted.
'''clear''' - delete the names matching the pattern from the ''symbol table''. The pattern is a simplified regular expression, with '?', '*', '[...]'. With no arguments, all user-define variables (local and global) are deleted.
 
'''close''' - close figure windows.
 
'''clc''' - clears the terminal screen and move the cursor to the upper left corner.

Revision as of 17:07, 20 December 2017

External

Installation

Differences between Octave and MATLAB

https://en.wikibooks.org/wiki/MATLAB_Programming/Differences_between_Octave_and_MATLAB

MATLAB only supports single quotes. Octave can be run in --traditional mode.

Concepts

Variables: local and global.

Usage

Linux commands:

cd - modify the current directory.

pwd - print working directory.

Interpreter Commands:

clear - delete the names matching the pattern from the symbol table. The pattern is a simplified regular expression, with '?', '*', '[...]'. With no arguments, all user-define variables (local and global) are deleted.

close - close figure windows.

clc - clears the terminal screen and move the cursor to the upper left corner.