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

조회 수: 2 (최근 30일)
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
Awais Saeed
Awais Saeed 2021년 10월 23일
What values of n,m,k would you use. I am asking because you need modifications in the matrix and there might occur a dimension error.
Image Analyst
Image Analyst 2021년 10월 23일
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.

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

답변 (1개)

VEERAPANDIYAN RENGASAMY
VEERAPANDIYAN RENGASAMY 2022년 2월 24일
Write a code to generate a random matrix A of size m × n with m > n and calculate its Frobenius norm, ∥ · ∥F . The entries of A must be of the form r.dddd (example 5.4316). The inputs are the positive integers m and n and the output should display the the dimensions and the calculated norm value. Deliverable(s) : The code with the desired input and output

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by