matlab 数组反向

>> x2=[9,10,11,12,13,14,15,16];

>> L2 = length(x2);
>> x2tr = [x2(1) x2(L2:-1:2)]

x2tr =

     9    16    15    14    13    12    11    10

posted on 2010-12-18 18:36  MorningChen  阅读(1598)  评论(0编辑  收藏  举报

导航