其中的某一行?那只是左右翻转啦 fliplr可以做到 A(i,:)=fliplr(A(i,:))
>> A=rand(2,5)
A =
0.8147 0.1270 0.6324 0.2785 0.9575
0.9058 0.9134 0.0975 0.5469 0.9649
>> A(2,:)=fliplr(A(2,:))
A =
0.8147 0.1270 0.6324 0.2785 0.9575
0.9649 0.5469 0.0975 0.9134 0.9058
>>