1 / 1

CIEG 675 IN CLASS EXERCISE ON MATH OPERATORS

CIEG 675 IN CLASS EXERCISE ON MATH OPERATORS. Define two 3x3 matrices that have 1 through 9 as entries in the first and 9 to 1 as entries in the second. Call them A and B A=[1 2 3’ 4 5 6; 7 8 9]; B=[9 8 7; 6 5 4; 3 2 1]; Define a third 3x3 matrix, C, that consists of all 7’s

lois-mullen
Download Presentation

CIEG 675 IN CLASS EXERCISE ON MATH OPERATORS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CIEG 675 IN CLASS EXERCISE ON MATH OPERATORS Define two 3x3 matrices that have 1 through 9 as entries in the first and 9 to 1 as entries in the second. Call them A and B A=[1 2 3’ 4 5 6; 7 8 9]; B=[9 8 7; 6 5 4; 3 2 1]; Define a third 3x3 matrix, C, that consists of all 7’s C=7*ones(3,3); Write the command to develop a variable D that adds 5 to matrix C and then divides that element-wise into the product of A and B D=(A+B)./(5+C);

More Related