Asked by Santos Solpos
on 19 Nov 2019 at 9:40

You need to solve and give the correct matlab expression and result

A= C= E=

1 2 3 4 16 2 3 13 1 0 0 0

6 8 1 5 5 11 10 8 0 1 0 0

9 4 2 7 9 7 6 12 0 0 0 1

9 4 7 2 4 14 15 1 1 0 0 0

B= D= F=

1 1 1 1 1 0 0 0 3 6 9 12

1 1 1 1 0 3 0 0 18 24 3 15

1 1 1 1 0 0 5 0 27 12 6 21

1 1 1 1 0 0 0 7 27 12 21 6

Question

- Create this matrix from the given matrices in Part V. (Use matrix shortcuts). Write the Matlab expression and Result.

T=

1 2 3 4 2 2 2 2 4 3 3 3

6 8 1 5 2 2 2 2 3 4 3 3

9 4 2 7 2 2 2 2 3 3 3 4

9 4 7 2 2 2 2 2 4 3 3 3

1 4 7 10 16 2 3 13 1 0 0 0

16 22 1 13 5 11 10 8 0 3 0 0

25 10 4 19 9 7 6 12 0 0 5 0

25 10 19 4 4 14 15 1 0 0 0 7

Answer by Santos Solpos
on 21 Nov 2019 at 8:31

Accepted Answer

Hello Sir David Hill

Can you check my answers? I attached pdf of my answers to matlab problems. I am hoping that you will give a comment.

Walter Roberson
on 21 Nov 2019 at 9:00

The division questions are ambiguous B/2C can be interpreted as B/2*C or as B/(2*C) depending on the context and the font.

AB can be either matrix multiplication * or element-by-element multiplication .* which are different operators.

B/C can be either matrix division / or element-by-element division ./

Sign in to comment.

Answer by David Hill
on 19 Nov 2019 at 12:05

Hint

T=[A,2*B,3*B+E;F-2*B,C,D];

Steven Lord
on 19 Nov 2019 at 15:17

If a problem sounds like a homework assignment (which this absolutely does), please don't simply provide the answer! [The more work the student shows the more generous I would be with hints; if they'd posted what you did except wrote F+2*B instead of F-2*B I'd just go ahead and fix it for them.]

A hint would have been a pointer to some of the introductory documentation, like the Matrices and Arrays section of the Getting Started with MATLAB chapter.

Sign in to comment.

Answer by Santos Solpos
on 21 Nov 2019 at 1:17

Hello David Hill

I tried using blkdiag. Is it correct?

David Hill
on 21 Nov 2019 at 2:44

I gave you the answer.

Walter Roberson
on 21 Nov 2019 at 7:08

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 5 Comments

## Ankit (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/491860-please-read-the-instructions-and-give-the-correct-expression#comment_768848

## Walter Roberson (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/491860-please-read-the-instructions-and-give-the-correct-expression#comment_768850

## Santos Solpos (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/491860-please-read-the-instructions-and-give-the-correct-expression#comment_768894

## Santos Solpos (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/491860-please-read-the-instructions-and-give-the-correct-expression#comment_768895

## Walter Roberson (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/491860-please-read-the-instructions-and-give-the-correct-expression#comment_769122

Sign in to comment.