how to threshold the values obtained by using 'max' function

2 ビュー (過去 30 日間)
Mohan
Mohan 2011 年 8 月 26 日
Hello,
I am using max function to determine the maximum value column wise in a matrix.
[vals, ind] = max(Images,[],2);
I am using the below statement which uses the indices that are obtained from the above statement.
LabIm = reshape(Labels(ind),d(1:3));
Now my problem is, I want to threshold the value and I have to take the indices of the values which are greater than the threshold I have specified.
Could anyone please help me out.
Thank you very much in advance.
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 26 日
What is Labels and d in your code?
Sean de Wolski
Sean de Wolski 2011 年 8 月 26 日
Please show an input (for each above variable) and expected output.

サインインしてコメントする。

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 8 月 26 日
a=magic(4)
b=a>10
[I,J]=find(b)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by