Find and replace chunk of elements in a table which matches a chunk in another table
1 次查看(过去 30 天)
显示 更早的评论
I have a test data in table format (table A) and re-test data in also table format (say table B).
The re-test is a partial re-test, so B is not the same size as A.
A and B has common table headers.
What identifies the re-tested entities in B are the elements three table headers, say B (:, 9 :11).
B (:, 9 :11) is a subset of A(:, 9 :11). (A(:, 9 :11) being larger in size than B (:, 9 :11))
Both B(:, 9) (& A(:, 9)) are chacater data type while B(:, 10:11) (& A(:, 10:11)) are type double.
I need to find the row indices of A for which A(:, 9 :11) == B(:, 9 :11) and then replace the entire data chunk for these indices in A with the entire data in B,
I am strugging with find and replace and would appricatite some help.
Thanks.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!