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!