CS 211 Lesson 4

Operations and Built-in Functions

Quote:

When a man has strong qualities of leadership, but is of low moral character, there is always the danger that his subordinates will be influenced by his bad characteristics, to the detriment of the leader and of the group.  But if the leader is a man of strong qualities of leadership and high moral character, he will endure and he will achieve better results. Edgar F. Puryear

Lesson Objectives:

Lesson:

I. MATLAB Concepts

A. MATLAB Operations

B. Scalar Operations

C. Array operations

D. Matrix Operations

E. Operator Precedence

F. Built-in Functions

Functions with no input arguments should be called with empty parentheses (especially in programs) to avoid confusion with variables.

date()

clock()

II. Good Programming Practices

III. Algorithms

A. Solve a system of n equations containing n unknowns

 

Lab Work: Lab 4

References:  Chapman Textbook: sections 2.8-2.10