Use colon notation to rewite a linear system

Suppose A is an augmented matrix representation of a linear system.
A = [-1, 2, -3; 4, -5, 6]
Rewrite as matrix equation Cx = D. Assign the matrices C and D in MATLAB using colon notation to define C and D using A
Find solution for x = C^(-1)*D

댓글 수: 3

James Tursa
James Tursa 2021년 11월 17일
The left 2x2 part of A is C, and the right column of A is D. Do you know how to use colons to extract columns of a matrix? Have you looked at the onramp tutorials?
ssmith
ssmith 2021년 11월 17일
@James Tursa A is not a 2x2 matrix it is a 2x3 meaning there are no lefts and rights because what would happen to the middle numbers?
James Tursa
James Tursa 2021년 11월 17일
The A matrix is 2x3, but I assumed that the phrase "augmented matrix" meant that it contained both C and D in one matrix, C being the left 2x2 part of A and D being the right 2x1 column of A. I.e., C and D are stacked side-by-side to form A.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2021년 11월 17일

댓글:

2021년 11월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by