MATLAB: Select rows and columns

select

Hello,
In attachment my dataset. I have to select the 3 first columns and the 8 first rows, all the data in it. How do I do this?

Best Answer

A(1:8,1:3)
Example
A=randi(9,10,5)
out=A(1:8,1:3)