How to select numbers?
3 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
その他の回答 (2 件)
infinity
2019 年 7 月 17 日
Hello,
You can simply type
F = rand(3)
M = rand(3)
result = F(F<M)
4 件のコメント
infinity
2019 年 7 月 17 日
Hello,
What do you mean when compare Tm and Tf when each element of them are complex number?
Assume when we obtain element of Tm that smaller than Tf, what do you mean by
"sum these numbers for A= sum(Tm)/sum(Tf)" ?
Jan
2019 年 7 月 17 日
F = rand(1,400);
M = rand(1,400);
Tf = log(-F) / 0.73;
Tm = log(-M) / 1.2;
It is hard to guess, what this means: "I should select Tm<Tf and sum these numbers for A= sum(Tm)/sum(Tf)". Perhaps:
index = (Tm < Tf);
A = sum(Tm(index)) / sum(Tf(index))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!