Matlab for Signal Processing-Lesson 02
- Grigoris Athanasiadis
- 23 Οκτ 2017
- διαβάστηκε 1 λεπτά

Suppose we have a matrix M defined as M= [π e^π; 0 -1] and a vector a vector v defined as v = [ 3 4 ] .
Then we suppose we want the vector dot - product (also called the “inner product ” ), and then entering the summation will compute the column sum of the vector. Now suppose we wish to find q= v*v^T . Note that v is a column vector (dimension 2 × 1), and thus q will be a 2 × 2 matrix
Those matrices may be entered into MATLAB using
M = [pi exp(pi); 0 -1]
v= [3 4]
%dot product
p = v.*v
%transpose matrix
M'
We can use conditions such as if-else or switch-case. An example






Σχόλια