MATLAB: I need to give 36*36 matrix as input which contains only 4 columns and the remaining as non zero columns,now how can I reduce the input memory

cropping matrixMATLAB and Simulink Student Suite

Suggest any code how to consider only those 1st four columns

Best Answer

MyMatrix(:,1:4)