Summary: Matlab
- This + 400k other summaries
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding
Read the summary and the most important questions on Matlab
-
Chapter 1
This is a preview. There are 2 more flashcards available for chapter 15/12/2019
Show more cards here -
Of what does a matrix consist and how can it be coded into matlab?
Size of a matrix is defined by the number of rows and columns it contains. Matrix with m rows and n columns is called a mxn matrix: A=[1 2 3; -2 -3 -4] -
What can be used to display the identity code in matlab?
Function eye -
What commands can be used to return a nxm matric containing unity or zeros in all entries?
Ones(n,m) and zeros(n,m) -
How can you turn a row vector into a column vector? And vice versa
By the transposition operator (') -
What does this command tell you: a=[1:2:10]?
This command tells you that a vector starts on 1, increases with 2 till a final value of 10 is reached. -
In matlab, what defines the concept length?
Returns the number of components of a(the dimension of the vector) -
In matlab, what defines the norm?
Norm(a) returns the norm of a and is by definition |a|= sqrt(a*a) -
How can element be extracted from an array?
A=array
Use the command: index=[rows you want to extract];
B=A(index,:)
B= -
For what are the commands sum and sort used?
Sum returns a row, which contains the sum of the columns in the matrix. If the sum is applied --> returns a single vector. Command sort returns a copy of the input vector with the elements arranged in increasing order/ -
What defines the command whos?
It will show variables that you have defined and their sizes
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding