MATLAB: How to extract data

datatranspose

My data consists of 181 rows and 91 columns like (size(gather) 181 91). I want to extract like 181 rows and first 19 columns (column 1 to 19) with new dimensions (size(gather) 181 19). How I can do it?

Best Answer

A = rand(181,91) ;
iwant = A(:,1:19) ;