Delete all values except the max value
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Hi,
I have a 10x10 matrix Y. Now i want to make all elements 0 except the highes value of a row. So for example I have a matrix:
A = [3,10,8
       4,8,1]
I want
B =  [0,10,0
         0,8,0]
Thanks
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

