How to filter out the table rows not matching the defined criteria?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a table that has multiple columns. See below.
I want to remove the rows that don't satistfy this condition: frame_id != "map" AND child_frame_id != "drone_base".
The remaining array should contain the "x" values of the remaining rows whose frame_id == "map" AND child_frame_id == "drone_base".
How would I go about doing that?
0 Kommentare
Antworten (1)
dpb
am 28 Jun. 2021
Bearbeitet: dpb
am 28 Jun. 2021
tYourTable=tYourTable(contains(tYourTable.frame_id,"map")&contains(tYourTable.child_frame_id,"drone_base"),:);
2 Kommentare
dpb
am 28 Jun. 2021
Yeah -- I had a typo originally and then didn't cut 'n paste enough...
"Do what I mean, not what I say!" :)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!