Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I have to find the maximum element in a two dimensional array and replace it with 0.
조회 수: 1 (최근 30일)
이전 댓글 표시
I don't even know where to start. I am also given an example: given array=[1 2 4 5; 8 -7 5 3; 12 45 1 6], after applying your scripts, array==[1 2 4 5; 8 -7 5 3; 12 0 1 6].
댓글 수: 2
Bish Erbas
2018년 9월 28일
Thanks, Walter. Newest questions page is flooded with same user's various other posts.
답변 (1개)
ANKUR KUMAR
2018년 9월 28일
A=randi(10,5,6)
A(A==max(A(:)))=0
댓글 수: 1
Walter Roberson
2018년 9월 28일
A question not answered in the specifications is what to do if there are multiple copies of the maximum.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!