基于matlab的序列圆周移位内容摘要:

ts. SHIFTSIZE is a vector of integer scalars where the Nth element specifies the shift amount for the Nth dimension of array A. If an element in SHIFTSIZE is positive, the values of A are shifted down (or to the right). If it is negative, the values of A are shifted up (or to the left). Examples: A = [ 1 2 3。 4 5 6。 7 8 9]。 B = circshift(A,1) % circularly shifts first dimension values down by 1. B = 7 8 9 1 2 3 4 5 6 B = circshift(A,[1 1]) % circularly shifts first dimension values % down by 1 and second dimension left by 1. B = 8 9 7 2 3 1 5 6 4 三 程序流程图 实现有限长序列的圆周移位的流程图如下: 四 程序源代码 clc。 clear all。 clf。 m=10。 e=0:19。 c=。 k=5。 a=k*c.^e。 a=a39。 b=circshift(a,m)。 L=length(a)1。 n=0:L。 subplot(2,1,1)。 stem(n,a)。 axis([0,L,m。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。