Try the Free Math Solver or Scroll down to Tutorials!

 Depdendent Variable

 Number of equations to solve: 23456789
 Equ. #1:
 Equ. #2:

 Equ. #3:

 Equ. #4:

 Equ. #5:

 Equ. #6:

 Equ. #7:

 Equ. #8:

 Equ. #9:

 Solve for:

 Dependent Variable

 Number of inequalities to solve: 23456789
 Ineq. #1:
 Ineq. #2:

 Ineq. #3:

 Ineq. #4:

 Ineq. #5:

 Ineq. #6:

 Ineq. #7:

 Ineq. #8:

 Ineq. #9:

 Solve for:

 Please use this form if you would like to have this math solver on your website, free of charge. Name: Email: Your Website: Msg:

# Using Matlab as a Research Tool

2. Matrix operations, save/load, script files, user functions

Hanselman & Littlefield: Chapters 4 (Script M-files), 12 (Functions), 14 (File and directory
management), 18 (Data analysis)

Matrix functions that operate by column
– sum, mean, prod
– cumsum, cumprod
– operations on vectors
– grand sums, means, etc.
– operating by row via double transposition

M-files (script files)
– global variables
– Ex: write MatrixTotals as a script file

M-files (functions)
– sample functions: LogSpiral, AnovaIsotonic
– global vs. local variables
– function, return
– input arguments
– output arguments
– help documentation

Ex: MatrixTotals, CricketChirpsToTemp, TimeConvert, GetLineParams, RandomIntegers

Elements of a well-written function
– help documentation
– name and purpose of function
– usage
– descriptions of input and output variables
– meaningful function and variable names in standardized format
– indentation and comments (becomes more important later)
– blank lines separating groups of related statements
– error-checking up front, with meaningful error messages

– diary
– diary fname
– diary on, off
– save [matfile]
– save [fname.mat]
– save fname
– save fname [vars]
– save [ascii]
– save fname [vars] -a