MATLAB: How can i save row value in variable like x(1)

metric

i have metric row =[1 1 0 0; 1 1 0 0; 0 1 1 0 ; 1 1 0 0] how i can make x(1)=1 1 0 0 and x(2)= 1 1 0 0 and so on

Best Answer

>> row =[1 1 0 0; 1 1 0 0; 0 1 1 0 ; 1 1 0 0] ;
x = row;
x(1,:)
ans =
1 1 0 0
>> x(2,:)
ans =
1 1 0 0
>>