COP 2271 Study Guide - Final Guide: Scientific Notation, Matlab, Empty Sum

470 views3 pages

Document Summary

Variable = input ( message for input") or blank to write answers. Variable = input ( message for input", s") for letters. Fprintf ( message", variable: %f with 6 decimals, %. 2f with however many decimals stated, %d whole numbers, %e exponential notation, %g however many decimals needed. Pause doesn"t continue until a key is pressed. If == / ~= / < / > / <= / >= condition && / || condition 2: statement, elseif, else. While condition / true / false same options as if statement: statement. Rounding: round(variable, fix(variable) towards 0, floor(variable) towards - , ceil(variable) towards + . Randi(number) random value from 1 to set number. Vector = [# # # # . ] row vector. Vector = [#, #, #, # . ] row vector. Vector = [#; #; #; #; . ] column vector. Vector(index) gives the number in that spot in a vector.

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