This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: MATLAB, DSP, Graphics Module No: CM0268 Laboratory Worksheet 2: MATLAB Matrices/Array Processing Prof. D. Marshall, Dr. Y. Lai Aims and Objectives After working through this worksheet you should be familiar with: The basic operation of MATLAB The distinction between Matrices and Arrays in MATLAB Performing basic MATLAB array and matrix operations Performing some simple audio and image processing tasks Work through all the questions below slowly, be careful to assimilate the MATLAB and the ideas behind. They are essential for understanding of much deeper concepts later in the module Do not worry if this takes more than one lab class to work through all the concepts here there is quite a lot of stuff here. None of the work here is part of the assessed coursework for this module 1 MATLAB Matrices/Array Processing Basic MATLAB Matrix/Array Processing 1. Without explicitly typing every row and column item : Create a 5 5 MATLAB Matrix that has the following form: A = 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 2. Create a matrix, A that is a 4 4 array of ones and a matrix, B , that is a 4 4 array of twos. Perform matrix and array multiplication on these arrays. Note the different answers. 3. Create a matrix, A = [1 2 3; 4 5 6; 7 8 9] and a 3 3 matrix of ones, B . Perform matrix multiplication of the form A * B and B * A and array multiplication A. * B and B. * A . Are any of these results the same? Why are some different and some the same? 4. Create a matrix, A = [1 2 3; 4 5 6; 7 8 9] Replace item A(3,3) by a Extract out the 2nd row as a vector and assign this to a vector, V Extract out the 3rd column as a vector and assign this to a vector, W Replace the 1st row of A with a series of zeros....
View
Full
Document
This note was uploaded on 01/24/2012 for the course CM 0268 taught by Professor Davidmarshall during the Winter '11 term at Cardiff University.
 Winter '11
 DavidMarshall

Click to edit the document details