matrix question about array and absolute value

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.

 채택된 답변

KSSV
KSSV 2019년 4월 30일

0 개 추천

Read about input and sort functions.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

질문:

2019년 4월 30일

답변:

2019년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by