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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents