Given a square matrix [A], write a single line MATLAB command that will create a new matrix [Aug] that consists of the original matrix [A] augmented by an identity matrix [I].

Respuesta :

Answer:

Consider A is square matrix of order 4 x 4 generated using magic function. Augmented matrix can be generated using:

Aug=[A eye(size(A))]

Above command is tested in MATLAB command window and is attached in figure below

Ver imagen afsahsaleem
ACCESS MORE
EDU ACCESS
Universidad de Mexico