# MATLAB: Selecting random number from martrix

random number

I have a matrix of 10rows and 10 columns,i want to select 5 rows randomly ,please help

    row = randperm(10);    row = row(1:5);    result = your_matrix(row,:);