how can I transform a 1D matrix to another one, by two element of the second matrix?

20 Views Asked by At

Does anyone know how can I transform a 1D matrix to another one, just by 2 elements of second matrix?

M1 = [1 2 3 4 5 6 7] => M2 = [20 n1' n2' n3' n4' n5' 30]

for example,In above matrices how can I find the value of n1' , n2' , . . . , n5' ?

Sincerely