If statement "if column 1 == column 2 then keep row"
1 回表示 (過去 30 日間)
古いコメントを表示
Just wondering what the best way to execute this.
eg Column A, Column B & Column C
I want a subset of data to show for all columns and only show the rows where column A == column B. I've been searching for an easy example to follow with no luck.
I think I can get this done with an If statement but not too sure.
0 件のコメント
回答 (1 件)
meghannmarie
2019 年 10 月 9 日
Have you tried something like this?
subData = data(colA == colB);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!