Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Questionnaire | Schedule | Submit

Saint Louis University

Computer Science 146
Object-Oriented Practicum

Michael Goldwasser

Spring 2012

Dept. of Math & Computer Science

Assignment 01

MATLAB Matrices

Overview

Topic: MATLAB Matrices
Due: 11:59pm Tuesday, 25 January 2012
Related Reading: Documentation from MathWorks or use the built-in documentation via "Help" in MATLAB

Please make sure you adhere to the policies on academic integrity.


This semester's assignments will be built around a case study of introduce a Matrix class into C++, modeled loosely after the functionality that is inherent to matrices in MATLAB.

For our first assignment, your goal is to review the basic operations that are supported by matrices in MATLAB so that we can begin to plan for what functionality we wish to support in our C++ version. To receive full credit, you must identify at least 15 interesting examples of behaviors that are supported by MATLAB matrices.

You should make sure to find some behaviors that create a new matrix (without having had an existing one), some functions that alter the state of an existing matrix, and some functions that produce a new matrix based upon some computation involving one or more existing matrices. Furthermore, you are required to report on the following MATLAB behaviors:

Note: There are many fucntions in MATLAB that are inherently functions on scalars (e.g., cos, abs, sqrt), but that can be invoked on a matrix as a whole with a syntax such as cos(A), in which case what happens is that the scalar function is invoked on an element-by-element basis. Please avoid those types of examples for this assignment.

Here are the questions you are to answer. Even though you are free to refer to formal documentation for MATLAB, you are to phrase your answers to these questions in your own words.


Michael Goldwasser
CSCI 146, Spring 2012
Last modified: Wednesday, 01 September 2010
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Questionnaire | Schedule | Submit