How to find values from data
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
When using if statements, I am trying to find a set of data that fits the condition I have given. How can I find where the data with the right conditions is located?
0 Kommentare
Antworten (1)
KSSV
am 12 Dez. 2021
You can use logical indexing.
Example:
A = rand(10,1) ; % data for demo
idx = A > 0.3 & A < 0.8 ;
idx
find(idx)
A(idx)
5 Kommentare
Star Strider
am 12 Dez. 2021
What are the row and column sizes are the two data sets? Do they have common times (or any other specific identifying row information)?
Siehe auch
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!