Signal Lab 1
Signal Lab 1
Extracting or inserting numbers in a vector can be done very easily. To concatenate an array, you can use
the [] operator, as shown in the example below:
>> x= [1:3 4 6 100:110]
ii. Take matrices of same order and first perform “*” operator and then perform “.*” operator. Note
the difference and write it down.
iii. Use the command size and length for matrices given by 1:0.3:10 and 1:1:1.5.
vii. Create an array that is vector of length 36, with every element zero except at 18th position, which
has value 1.
viii. Generate a complex-valued matrix a= ones(1,3) + i*ones(1,3) and calculate the absolute & square
of all elements of this matrix.