For example: A = (N1, N2, N3…, N20) B = (NN1, NN2, NN3…, NN20) C = (Data1, Data2, …. Data13000)
N1, NN1, and Data1 are all numbers there is not a relationship between them other than I want to look in C and replace any exact values that can be found in A with the exact values found in the same position in B. I can do this in for loops but I think there must be a more efficient way than: for i = 1:length(c) for j = 1:length (A) if C(i) == A(j) C(i) = B(j) end end end
Best Answer