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 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by