matlab之数组反序输出

a=[1 2 3 4 5]

a(end:-1:1)=[5 4 3 2 1]

原文地址:https://www.cnblogs.com/yibeimingyue/p/11201805.html