Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
i have array cv which contains 16 rows & 2 columns. i need to find index of any one column. for ex, ans=2 or ans=1. i tried the following code. but it doesn't give the correct answer.please send the code.thank u sir.
조회 수: 1 (최근 30일)
이전 댓글 표시
[ind]=find(cv(:,z),2)
댓글 수: 0
답변 (1개)
Roger Stafford
2016년 3월 26일
I think what you meant to do is:
ind = find(cv(:,z) == 2); % Gives indices of each element in column z which equals 2
댓글 수: 3
divya taru
2016년 3월 27일
i have another problem in matlab. i had converted image into blocks. I converted blocks to linear array. Next i calculated mean values for first 8 arrays. now i want to convert mean values to linear array again. please send suitable code. please don't ignore it. thank u very much.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!