If
a=[5 8 1 2 6 7 1 4 2 3 7 8];
b=[7 6 3 1 5 4 2 0 1 8 9 4];
then
a1=[1 7 3]
corresponds to a matrix and d should be [3 4 8]
d
is the exact location of the corresponding a
value. How do I find this value?
If
a=[5 8 1 2 6 7 1 4 2 3 7 8];
b=[7 6 3 1 5 4 2 0 1 8 9 4];
then
a1=[1 7 3]
corresponds to a matrix and d should be [3 4 8]
d
is the exact location of the corresponding a
value. How do I find this value?
As a one-liner:
Try this:
output is [3 4 8]
Hope this helps.