 # Summary Matlab

##### Course
- Matlab
- Herma
- 2019 - 2020
- Chemistry
55 Flashcards & Notes
Scroll down to see the PDF preview!
PLEASE KNOW!!! There are just 55 flashcards and notes available for this material. This summary might not be complete. Please search similar or other summaries.
• This summary
• +380.000 other summaries
• A unique study tool
• A rehearsal system for this summary
• Studycoaching with videos
Remember faster, study better. Scientifically proven. • ## Chapter 1

• 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
PLEASE KNOW!!! There are just 55 flashcards and notes available for this material. This summary might not be complete. Please search similar or other summaries.