Pg
Posts:
139
Registered:
1/24/09


Extracting particular row of a matrix based on specific condition
Posted:
Dec 29, 2013 3:30 PM


Hi,
I have two different matrix, say A = [519 520 521 1000]. I have a 2nd matrix B = [1000 0.12 0.005 0.1 520 0.13 0.001 0.89 518 0.12 0.002 0.98 600 0.14 0.004 0.90];
I need to pick up the values in A matrix, find out common 1st column element in Matrix B and extract corresponding row. Say, 520, 1000 is common in both matrix, so my output will be a new matrix C = [0.12 0.005 0.1 0.13 0.001 0.89];
Let me know how to do so. Thanks,

