finding values within a limit
4 ビュー (過去 30 日間)
古いコメントを表示
Thishan Dharshana Karandana Gamalathge
2017 年 6 月 17 日
回答済み: Star Strider
2017 年 6 月 17 日
I have a couple of indices selected via t1=find(touse==1); Then I need to use it to find a few values that are below a particular value. But it gives a value which is above that margin as well. If my limit is 10.5 i used the following code
test(find((test(t1))<10.5))
but it also gives a value above 10.5. Is there a mistake in that code?
Thanks.
0 件のコメント
採用された回答
Star Strider
2017 年 6 月 17 日
I believe your error is in using the ‘t1’ result.
Try this:
test = 20*rand(20,1); % Create Data
Result = test(test < 10.5); % Desired Output
I have no idea how ‘test’ and ‘touse’ are related, so you will likely have to experiment to get the result you want.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Hypothesis Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!