01:198:107 Lecture Notes - Lecture 2: Farad, Hyperbolic Function, Inverse Hyperbolic Function
Document Summary
Cs 107 - lecture 2 - matlab programs (script) and matlab functions. Click on c in the upper left corner, go to desktop, create a new folder, name it. Matlab and save work for this class in that folder. Semi-colon means that the program will not be printed in the command window, and it will just show up in the data and variables memory box. Stores a piece of data in a variable. Store the result in the variable with name variablename. A way to name the process of evaluating a particular expression. Can compare different functions and discuss their properties. Not all functions can be written as simple expressions. They do parts of the work of the program. String them together to do more complicated things. A function is defined by an m-file. The m-file swap. m must start with function [x,y] = swap (x,y) The rest of the m-file contains matlab statements.