Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Getting rid of built in vectorised function (Max)
조회 수: 1 (최근 30일)
이전 댓글 표시
I just wanted to see if its possible to get rid of max in the following whilst still producing the same result.
A=[1,2,3,4,5,6,7,8,9,1,2,3]
idy = [diff(A)>0,true] & [true,diff(A)<0];
[~,idx] = max(A); %get rid of max
idy(idx:end) = false;
댓글 수: 1
the cyclist
2019년 10월 20일
It might help for you to describe conceptually what you are trying to do with the entire algorithm.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!