Download Introduction to MATLAB: Basic Syntax

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts

Addition wikipedia , lookup

Classical Hamiltonian quaternions wikipedia , lookup

Determinant wikipedia , lookup

Bra–ket notation wikipedia , lookup

Mathematics of radio engineering wikipedia , lookup

Matrix calculus wikipedia , lookup

Transcript
Vectors and matrices
Calling Functions
Function calls have specific syntax;
they require input and output;
use square brackets for multiple outputs
Both built-in and user-created function are called as
[output1,output2,...,outputN]=functionname(input1,input2,...,inputN);
Examples:
dM=mean(vX);
or
dM=mean(vX);
[dy, index] = min(vX);
Rossi
Introduction to MATLAB
Financial Econometrics - 2014
22 / 46