Check true if value in a matrix is increasing,decreasing or staying same

조회 수: 15 (최근 30일)
I have a matrix with x values. I want to check if the values in the matrix are increasing, decresing or are the same value. How to write this if function? For example x = [10;20;30;40]

채택된 답변

the cyclist
the cyclist 2021년 4월 10일
Use the diff command, and check whether the result is greater than zero, etc.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by