現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
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
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0
1
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!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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 (한국어)