Unit 3 EGR 115

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

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:34 PM on 3/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

53 Terms

1
New cards

Scalar

A single number

2
New cards

Row Vector

Rows by columns i.e. 1×4

3
New cards

Brackets [] and commas ,

How to create a row vector

4
New cards

Column Vector

A group of numbers organized vertically i.e 4×1

5
New cards

Semicolon ; and apostrophe ‘

How to create column vector and transpose matrix

6
New cards

Transpose Matrix

Swapping (i,j) for (j,i)

7
New cards

Matrix

Rows by Columns

8
New cards

Hardcoding Arrays

There should be consistent rows or columns i.e 4×3 not 4×2 and 3×1

9
New cards

Size()

Dimensions of an array

10
New cards

How to use Size()

2 outputs (row and column) or 2 inputs (array, 1 for rows or 2 for columns)

11
New cards

Length()

Finds the maximum of rows or columns; whichever is greater

12
New cards

How to use Length()

1 output needed (i.e only include the Matrix)

13
New cards

Sum()

Finds the sum of array elements

14
New cards

Sum(Matrix3,1)

Sum of all rows

15
New cards

Sum(Matrix3,2)

Sum of all columns

16
New cards

Sum(sum(Matrix3,1)

Sum of all elements

17
New cards

min()

Finds the minimum element within an array

18
New cards

min(Matrix3,[],1)

minimum of each row

19
New cards

min(Matrix3,[],2)

minimum of each column

20
New cards

min(min(Matrix3,[],1))

minimum of whole matrix

21
New cards

max()

Finds the maximum of an array

22
New cards

max(Matrix3,[],1)

finds the max of a row

23
New cards

max(Matrix3,[],2)

Finds the max of a column

24
New cards

max(max(Matrix3,[],1))

Finds the max of a matrix

25
New cards

[H_Value, H_Location] = max(Vector)

Return maximum value and location

26
New cards

[L_Value, L_Location = min(Vector)

Return minimum value and location

27
New cards

Matrix Addition

Can hardcode a number to add or add 2 matrices together

28
New cards

C= A + B

A = [1,2,3,4]

B = [5,6,7,8]

Add together to “C”

29
New cards

AddTest = Matrix4 + [1,2]

Add 1 value to Matrix row, 2 values to Matrix column

30
New cards

M_test_2 = Matrix4 .* [1,2]

Elementwise multiplication

31
New cards

Slicing (Element)

A1=A(2,4)

32
New cards

Slicing(Row)

A1=A(:,2)

33
New cards

Slicing(Column)

A1=A(3,:) or A1=A(3,[1:end])

34
New cards

Slicing(Rows and Columns)

A1=A(1:2,1:4)

35
New cards

Augment Arrays

brackets [] and commas , or brackets and semicolons

36
New cards

Arrays Dimnution

G(:,3) = []

37
New cards

A=zeroes(2,3) and B=ones(2,3)

zeroes and ones functions

38
New cards

Traversing Arrays

Moving through an array element by element

39
New cards

Traversing Format (Vector)

One for loop, if statement depends on if conditions need to be met

40
New cards

Traversing Format (Matrix)

2 for loops, if statements dependent on if conditions need to be met

41
New cards

Referencing

Use one for loop inside of another to use 2 different values

42
New cards

plot(x,y,’linespec’)

Plotting

43
New cards

hold on, hold off

2 plots

44
New cards

title(‘titleL’)

Title

45
New cards

xlabel(‘x’)

X axis label

46
New cards

ylabel(‘y’)

Y axis label

47
New cards

ylim[,] and xlim[,]

Axis limits

48
New cards

legend(‘x’,’y’)

Graph legend

49
New cards

y=linspace(x1,x2,n)

Plotting Functions

50
New cards

X1

Starting value of sequence

51
New cards

X2

Ending value of sequence

52
New cards

n

number of points to generate

53
New cards

subplot(row, column, position)

Subplot formula