Wed 1/19/2011 Overview of the class - go over learning objectives
- go over syllabus and course requirements
- discuss Matlab vs Octave
http://dennett.cs-i.brandeis.edu/cs177/cs177Lect01/cs177Lect01.mov (or try this) Downloading and installing Octave - visit http://www.gnu.org/software/octave/
- or easier
- for mac download the dmg file and double click
http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/ - for windows visit http://octave.sourceforge.net and click on the windows installer
- click to "download" tab and follow instructions
- here is a link to a page where we can describe how to install on different platforms!
- here is a link to a sandbox where you can practice using google sites to edit pages ...
- visit the online Octave manual http://www.gnu.org/software/octave/doc/interpreter/
Evaluating arithmetic expressions using Octave/Matlab - commenting using %
- semicolons suppress output
- clc to clear
- arithmetic operators (+-*/^)
- precedence and associativity and parentheses
- display formats (short, long, short e, long e, short g, long g, bank, compact, loose)
- builtin functions (sqrt, nthroot, exp, abs, log, log10, factorial, sin, cos, ...)
- here is a link to all of the builtin arithmetic functions
http://www.gnu.org/software/octave/doc/interpreter/Arithmetic.html#Arithmetic
- assignment and variables (start with letter, alphanumeric, 63 chars max, case sensitive, no spaces, no builtins)
- keywords and predefined values
- who/whos to see defined variables
- use pwd to find current directory and cd to change and "cd .." to go up one directory
- store scripts in a file that ends with ".m"
- writing name of script in command window invokes the commands in the script as if you typed them directly in
Script files Homework 1 |

lectures >