Compare text to a column value and write corresponding row to new file
2 views (last 30 days)
I need to write a code that will read every value in a matrix colum (about 5,000 entries long), compare the value in each cell to an existing variable and if the cell value matches the existing variable, write the entire row to a new table.
I am thinking I will need to use a 'for' loop to evaluate the entire matrix and string compare but I am not sure how to go about writing this.
ANKUR KUMAR on 15 Mar 2021
You can find the indices of matching values in matrix and cell.
If this helps you, its good. Otherwise, I would request you to attach mat file having sufficient varibales.