How to select numbers?
Ältere Kommentare anzeigen
F=rand(400) M=rand(400) How can i select F<M ?
Akzeptierte Antwort
Weitere Antworten (2)
infinity
am 17 Jul. 2019
Hello,
You can simply type
F = rand(3)
M = rand(3)
result = F(F<M)
4 Kommentare
Pari
am 17 Jul. 2019
infinity
am 17 Jul. 2019
Hello,
To solve your actual problem, you should provide more description of it.
Pari
am 17 Jul. 2019
infinity
am 17 Jul. 2019
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
am 17 Jul. 2019
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))
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!