ENGR 121 Lecture Notes - Lecture 3: Bar Chart, Mnemonic, Row And Column Vectors

50 views5 pages

Document Summary

Week 3: introducion to matlab programming: an algorithm is the sequence of steps needed to solve a problem, top-down design approach to programming. Break a soluion down into steps, then further reine each step: a modular program consists of funcions that implement each step. Output: disp is a quick way to display things, fprint allows formaing. Uses format strings which include place holders contain the following conversion characters. %#x: speciies ield width of : # is an integer and x is the conversion character. %#. #x: speciies a ield width and the number of decimal places. %. #x: speciies just the number of decimal places. Formaing output: \n: newline character, : tab character, (dash): let jusify, \: print one slash, " (two single quotes): print one single quote, disp is the best method for prining vectors and matrices. Examples of fprint: expressions ater the format string ill in for the place holders, in sequence.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents