이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
ismembertol: What am I doing wrong?
조회 수: 1 (최근 30일)
이전 댓글 표시
x is attached. "Transparency" looks ok but "Lia" is all zero. Any idea what I'm doing wrong here?
Transparency = find (x>=0.9 | x<=0.8);
[Lia,~] = ismembertol (x, Transparency,1e-16);
채택된 답변
Steven Lord
2022년 3월 14일
Based on your comment describing the problem you're trying to solve: "The idea is to make the elements that fall outside a range transparent. That's why there is OR. Bigger than a certain value, smaller than a certain value. You can pick any number. 4 and 6 are arbitrary." I think you've overcomplicated the problem. If all you want is a vector of true or false values depending on whether or not the values in x are in your range you need neither ismembertol nor find.
rng(6, 'twister') % Seed chosen so there are multiple elements in range
x = rand(10, 1); % Sample data
tooSmall = x <= 0.8;
tooLarge = x >= 0.9;
justRight = ~tooSmall & ~tooLarge;
Let's look at the results as a table.
t = table(x, tooSmall, tooLarge, justRight)
If we were to use justRight to index into x, we'd get two elements.
x(justRight)
If we were to use tooSmall and tooLarge to index into x, we could get the other eight elements.
x(tooSmall | tooLarge)
댓글 수: 2
Pelajar UM
2022년 3월 14일
편집: Pelajar UM
2022년 3월 14일
I still wonder why ismember and find are not working consistently across different data sets but you are absolutely right. This method is far simpler and more robust too. Thanks a lot.
Steven Lord
2022년 3월 14일
In your original ismembertol call, you're asking for the intersection between raw data and indices of some of the values in the raw data. That doesn't make conceptual sense to me. I think that disconnect is the reason the behavior doesn't seem to be "working consistently".
추가 답변 (2개)
Arif Hoq
2022년 3월 14일
편집: Arif Hoq
2022년 3월 14일
try this:
x=readmatrix('x.txt');
Transparency = x(x>=0.9 | x<=0.8);
[Lia,~] = ismembertol (x, Transparency,1e-16)
Lia = 35526×1 logical array
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
1
1
0
1
1
0
1
0
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
0
0
0
1
1
0
0
1
1
0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
1
1
0
1
1
1
1
0
1
0
0
1
1
1
1
1
0
0
1
0
0
0
1
0
1
1
1
1
0
1
0
0
0
0
1
0
0
0
1
1
1
1
1
1
0
1
1
1
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
0
1
1
1
0
0
1
0
1
1
0
1
1
1
1
1
1
1
1
0
1
0
0
0
0
1
1
1
1
0
1
1
1
0
0
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
0
0
1
1
1
1
1
댓글 수: 5
Pelajar UM
2022년 3월 14일
편집: Pelajar UM
2022년 3월 14일
t=readmatrix('t.txt');
Transparency = t (t>=6 | t<=4);
[Lia,~] = ismembertol (t, Transparency,1e-16);
Thanks. It worked for x, but it doesn't work for t ("find" works for this one though).
I don't understand why...
Arif Hoq
2022년 3월 14일
first: your file name is x.txt, not t.txt
second: all the values of x.txt is less than 1, but your logical expression is less than 4 and greater than 6 which is out of range of x.txt.
so it would not work
Arif Hoq
2022년 3월 14일
i dont now about your expectation. I guess you trying to find the value x between 4 and 6, so try this
Transparency=t(t>=4 & t<=6)
Pelajar UM
2022년 3월 14일
The idea is to make the elements that fall outside a range transparent. That's why there is OR. Bigger than a certain value, smaller than a certain value. You can pick any number. 4 and 6 are arbitrary.
Jan
2022년 3월 14일
find() replies the indices of the non-zero elements. Indices are positive integers >= 1.
ismembertol(x, Transparency, 1e-16) searchs for elements of x, which are less than 1e-16 apart from any index stored in Transparency. None of the elements of x is close enough to 1, and 1 is the smallest possible value of Transparency. You have confused indices and the corresponding values.
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)