I do not understand the connection between your title and the content of your question. Anyway if you want to extract the last column of your 4-D matrix, it's very simple,
A_last_col = reshape(squeeze(A(:,end,:,:)),1,[]);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!