MATLAB Octave: Difference between revisions
Jump to navigation
Jump to search
(→Usage) |
(→Usage) |
||
Line 35: | Line 35: | ||
'''clc''' - clears the terminal screen and move the cursor to the upper left corner. | '''clc''' - clears the terminal screen and move the cursor to the upper left corner. | ||
<span id='printf'></span>'''printf''' - Also see [[printf]]. | <span id='printf'></span>'''printf''' - Also see [[printf|Generic printf]]. | ||
'''fprintf''' - like [[#printf|printf]], just that the output is written to the FID stream instead of stdout. | '''fprintf''' - like [[#printf|printf]], just that the output is written to the FID stream instead of stdout. |
Revision as of 17:13, 20 December 2017
External
- https://www.gnu.org/software/octave/doc/interpreter/
- https://www.coursera.org/learn/machine-learning/supplement/Mlf3e/more-octave-matlab-resources
- https://www.coursera.org/learn/machine-learning/supplement/SFKpu/programming-tips-from-mentors
Installation
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.
printf - Also see Generic printf.
fprintf - like printf, just that the output is written to the FID stream instead of stdout.