ENGG100 - MATLAB Fundamentals

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

33 Terms

1
New cards

who

lists all variables in workspace

2
New cards

whos

lists all variables in workspace, with sizes and types

3
New cards

ans

returns most recent answer

4
New cards

byte

amount of computer memory required for one character

5
New cards

8

1 byte is equivalent to __ bits (how many?)

6
New cards

1×1

size of a scalar variable

7
New cards

double

This variable class means that the variable holds numeric values as double-precision floating point

8
New cards

floating-point

It means the computer can represent numbers with decimal/fractional parts and across a huge range of sizes

9
New cards

Array Editor

With this tool, you can view and even change the values of workspace variables

10
New cards

Integers

A fundamental MATLAB data type with examples:

  • int8 / uint8

  • int16 / uint16

  • int32 / uint32

  • int64 / uint64


11
New cards

floating point numbers

A fundamental MATLAB data type with examples:

  • single

  • double


12
New cards

double

what is the default variable type for numeric variables?

13
New cards

32 bits / 4 bytes

number of bits/bytes in a single variable type

14
New cards

64 bits / 8 bytes

number of bits/bytes in a double variable type

15
New cards

Complex Numbers

A fundamental MATLAB data type with examples:

  • double for real part

  • double for imaginary part


16
New cards

Characters

A fundamental MATLAB data type with examples:

  • ‘a’

  • ‘b’

  • ‘c’


17
New cards

Strings

A fundamental MATLAB data type with examples:

  • “Hello”

  • “Konnichiwa”

  • “Kamusta”


18
New cards

Vector

a special type of matrix, having only one row or one column

19
New cards

lists or arrays

Vectors are called ____ or ____ in other programming languages

20
New cards

vector

generally refers to the one-dimensional (1D) array form

21
New cards

matrix

generally refers to the two-dimensional (2D) array form

22
New cards

linspace

This function can be used to initialize a vector of equally spaced values (evenly spaced by addition)

23
New cards

logspace

This function can be used to generate logarithmically spaced data (evenly spaced by multiplication)

24
New cards

logspace

This function produces a set of points with an interval between them that increases linearly with y

25
New cards

Apostrophe (‘)

The symbol that is often used in MATLAB to indicate the transpose

26
New cards

Matrix

it may be thought of as a table consisting of rows and columns

27
New cards

16

On computers using standard floating-point arithmetic, numbers are represented to approximately how many significant decimal digits?

28
New cards

eps

The relative accuracy of numbers is given by this function, which is defined as the distance between 1.0 and the next largest floating-point number.

29
New cards

converted to double precision using the double function

Before mathematical operations can be performed on such types, they must be _____________.

30
New cards

both vectors must be the same size

When array operations are applied to two vectors, what condition must be met?

31
New cards

sum(a .* b)

What statement/code will find the scalar product (dot product) of a and b?

32
New cards

expression

It is a formula consisting of variables, numbers, operators, and function names.

33
New cards

statements

they are frequently of the form:

variable = expression

as in:

s=u t-g/2 t .^ 2;