I have a matrix
a = [4;6;8;2;8;2];
And I want it to be like:
b = [7;8;11;12;15;16;3;4;15;16;3;4];
Matrix b is calculated based on following formula:
7 = 4*2-18 = 4*211 = 6*2-112 = 6*215 = 8*2-116 = 8*23 = 2*2-14 = 2*215 = 8*2-116 = 8*23 = 2*2-14 = 2*2
Best Answer