chapter 1 Flashcards
abstraction
process that drives evolution of computer language and enables more USERS to use COMPUTERS
MatLab
developed by MOLER and LITTLE, stands for Matrix Lab
purpose of MatLab
graphing math computations for scientists and engineers, provides visualization tools to analyze results
compiled languages
converts high level instructions to low
require code to be fully compiled before program can be executed
machine instruction
specific to processed of program, sequence of 1s and 0s
interpreted languages
program called interpreter will read high level statement, execute operation, and then read the next statement
pros and cons of interpreted languages
pros- can be executed across many different computing systems as long as interpreter is available
cons- interpreter needs more steps to execute program which can slow execution
MatLab interpreter
carries out computations based on statement, allocates memory for data and adds results
command window
presents user with interactive environment, programmer types statement to be executed by interpreter
workspace
displays data being used by interpreter
variable
allocated memory for data
semicolon
interpreter won’t print output of statement, helps create variables
white space
horizontal spaces that don’t matter… things mean the same either way but it makes it better stylistically and easier to read
clc
clear command window (doesn’t affect workspace, variables are unchanged)
clear
clears all variables from workspace
diary
records everything that appears in command window into file, name of file is chosen by programmer
exit
exits Matlab session
who
prints out all variables in current workspace
whos
prints out all variables in workspace and extra Information about their size, bytes, etc
ctrl-c
interrupts endless Matlab calculation that programmer may have accidentally enterred
format commands
can alter how output appears in command window
format long
display shows 15 digits after decimal