Exam 1 : Review Flashcards
What is a program?
A program is a SET OF INSTRUCTIONS that RECEIVES INPUT, PROCESS THE INPUT, and DELIVERS OUTPUT
List the three steps of computer programming
sequential
decision making
iterative
what are the steps to computer programming?
- designing
- writing
- debugging/troubleshooting
- validating
- maintaining
list the four variable types used in matlab
numeric
cell
character/text/ string
structured
difference b/w , and ;
, horizontal separator
; vertical separator
[] vs ()
[] array definition
() indicates index of elements
.* vs *
.* element by element multiplication
* straight multiplication
: does?
indicates a range of values
if vs else
if - executes statement if logical expression is true
else - option when “if statement” is false
clc vs clear
clc clears the command window
clear clears all variables
else versus elseif
IDK