Introduction to MATLAB & SIMULINK: A Project Approach, Third Edition

SUMMARY

Table A.1 of Appendix 1 lists all the arithmetic operations and their execution as matrix operations, each with an example.

Table A.2 again lists the arithmetic operations and their execution as field operations.

ON THE CD The MATLAB demonstration program aritdemo.m in the accompanying software illustrates the different possibilities associated with arithmetic operations. In particular, it provides practical experience with the difference between matrix and field operations and with the matrix concept in MATLAB. It can be started 7 by copying aritdemo to the command window.

PROBLEMS

Work through the following problems for practice with arithmetic operations.

NOTE Solutions to all problems can be found in Chapter 4.

Problem 8

Start the MATLAB demonstration program aritdemo.m by calling the command aritdemo in the MATLAB command window and work through the program.

Problem 9

Calculate

  1. the standard scalar product of the vectors


    using a matrix operation and a field operation,

  2. the product of the matrices


  3. using a suitable field operation calculate the matrix


    from the matrix


Problem 10

Test left division with the matrix


and the vector


and interpret the result.

Problem 11

Test right division with the matrix


and the vector


and interpret the result.

Problem 12

Calculate the inverse matrix of


using right (or left) division.

Answers

Solution to Problem 8 (file: aritdemo.m)

Enter the command aritdemo in the MATLAB command window and follow the commands on the screen.

Solution to...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Arithmetic Logic Units (ALU)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.