Problem:
array1 = [1 2 3];
must be converted in
array1MirrorImage = [3 2 1];
So far I obtained the ugly solution below:
array1MirrorImage = padarray(array1, [0 length(array)], 'symmetric','pre');
array1MirrorImage = array1MirrorImage(1:length(array1));
There must be a prettier solution to this. Anyone knows one?