Exam 3 Review Comprehensive Exam Class 14 2
- Slides: 17
Exam #3 Review: Comprehensive Exam Class 14. 2 Palm Matlab Book Ch. 1 -5
Exam #3: Comprehensive Exam Thursday, December 2, 2004 n 6: 30 - 8: 00 pm n Bright 124 n Bring: n ¨ Pencil, n calculator, and graphics pack Turn in: ¨ Completed group project and team evaluation form (separately).
Chapter 1: Matlab file commands and command window management n Order of operations n On-line help n Matlab editor n ¨ Comments ¨ Legal file names ¨ Difference between script and function files
Chapter 2: n Arrays (creation, indexing, editing) ¨ find(), n n linspace(), max(), min(), size(), sort(), sum() Array operations or element-by-element operations (. *, . /, . ^, +, -) Matrix operations ¨ Multiplication, ¨ cross(), n addition, subtraction, coefficients dot() Polynomial commands ¨ conv(), deconv(), polyval(), roots()
Chapter 2, continued: n Cell arrays ¨ Know two methods for creating/editing data ¨ Store mixed data types n Structure arrays ¨ Data structure with named fields ¨ structure(rec_num). field
Chapter 3: n Built-in math functions ¨ exp(), sqrt(), log 10(), cos(), sin() ¨ fzero(), fminsearch() n Importing data
Chapter 3, continued: n User-defined functions: ¨ function [outputs] = f_name(inputs) Store as f_name. m n Use as in: n ¨ >> n [outputs] = f_name(inputs) Variables in function are local (deleted after function finishes) unless defined as global
Chapter 4: n Relational operators ¨ >, n Logical operators ¨ ~, n <, >=, <=, ==, ~= &, &&, |, ||, xor() Order of operations ¨ (), ^ * /, + -, > < …, &, |
Chapter 4, continued: n If – structure if logical 1 Block 1 elseif logical 2 Block 2 else Block 3 end
Chapter 4, continued: n Switch – structure Switch switch_var Case value 1 Block 1 Case value 2 Block 2 Otherwise Block 3 end
Chapter 4, continued: n For – loops for loop_var = m: s: n Block Loop_var = … % NOT ALLOWED A(loop_var) = … % ALLOWED … = Loop_var … % ALLOWED end
Chapter 4, continued: n While – loops While logical statement Block Something that changes logical statement end
Chapter 4, continued: n Flow control commands ¨ break, continue
Chapter 5: n Basic plotting commands ¨ plot(), axis(), xlabel(), ylabel(), title(), text() ¨ grid on, hold on, grid off, hold off n Different plot types ¨ plot(), n loglog(), semilogy(), semilogx() Different symbol types ¨ ‘bo-’, ‘o--’, ‘b’, ‘o’, etc.
Chapter 5, continued: n Three-dimensional plots ¨ mesh(), surf(), contour(), plot 3() [x, y] = meshgrid(x, y) n Z = x. *x, etc. n
Chapter 5, continued: Linear, power, and exponential functions n Polynomial fitting n ¨ polyfit(), n Linear regression ¨ y/x, n polyval() etc. Plotting multiple plots in a single figure ¨ subplot, hold
Any questions?
- Ap gov review final exam review
- Ch. 5: comprehensive exam
- Chapter 3 comprehensive exam
- Carlton comprehensive high school class schedule
- Chapter review motion part a vocabulary review answer key
- Narrative review vs systematic review
- Narrative review vs systematic review
- Narrative review vs systematic review
- World history spring final exam review answers
- Exam review template
- Spanish 2 final exam practice test
- Final exam review packet spanish 1 and spanish 2 answer key
- Human body systems final exam
- Poe practice test - materials answer key
- Mrcgp online questions
- Ied final exam review
- Hbs eoc study guide
- World history semester 2 final exam review