matrix question about array and absolute value

6 visualizaciones (últimos 30 días)
Kevin Ferdinand
Kevin Ferdinand el 30 de Abr. de 2019
Respondida: KSSV el 30 de Abr. de 2019
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.

Respuesta aceptada

KSSV
KSSV el 30 de Abr. de 2019
Read about input and sort functions.

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by