Finding the indexes of multiple elements that are equal to a certain value in an array
3 ビュー (過去 30 日間)
古いコメントを表示
Christopher Abel
2018 年 9 月 25 日
コメント済み: Christopher Abel
2018 年 9 月 25 日
W=400;Lb=5;Lc=3;
% a)
D = (1:0.01:2.9);
T = Lb*Lc*W./(D.*sqrt(Lc^2-D.^2));
[t,d]=min(T);
Specifically, I need help finding the D values where T increases 10 percent above its minimum value. My initial approach was to try and find the indexes of the elements in D that are equal to 1466.67, which is 10 percent above the function's minimum value, then plug them into D to find out what values those indexes correspond to. I've searching on here, and have tried using the find() command and the ismembertol() command, to no avail. I am probably using them wrong anyways, and would greatly appreciate any help in solving my problem.
0 件のコメント
採用された回答
その他の回答 (2 件)
Christopher Abel
2018 年 9 月 25 日
1 件のコメント
Walter Roberson
2018 年 9 月 25 日
You will not find any place where they are exactly equal. Do you need to find all that are above the threshold, or all below, or do you need to find the transition boundaries?
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
