# Create a random matrix A of m,n size entered from the keyboard. Matrix B is n,k size with k entered from keyboard

5 views (last 30 days)
Phung Khai on 23 Oct 2021
Commented: Image Analyst on 23 Oct 2021
Can you help me :
Create a random matrix A of m,n size entered from the keyboard. Matrix B is n,k size with k entered from keyboard
a) Remove rows i and column j of the random matrix just created. With i = (n+m)mod n and j=(n+m) mod m
b) Add i+1 rows and j+1 columns to matrix A.
c) Delete element A[i,j]
d) Giving diagonal elements of matrix A
e) Giving the transposition matrix and the inverse matrix of matrix A
f) Calculate the A*B matrix.
##### 2 CommentsShowHide 1 older comment
Image Analyst on 23 Oct 2021
What kind of help do you need? Like a pointer to look up input(), eye(), inv(), transpose, etc. in the help?
By the way, c) is impossible. You can set A(i,j) to some value, like 0 or nan, but you can't delete it and leave a "hole" in the matrix.

R2019a

### Community Treasure Hunt

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

Start Hunting!