MATLAB: Matrix question about array and absolute value

matrixmatrix arraymatrix manipulation

Write a user defined function, listDesDif, which will take an input of M and use the function from part a) to produce a matrix, it will then produce an array containing the numbers from this matrix. The array should be sorted in descending order of the absolute value of the difference between each individual element in the matrix and the first element in the matrix.

Best Answer

  • Read about input and sort functions.