Hi,,I am trying to generate a shift register in matlab .IS it possible?I am explaining the problem below.Thanks in Advance

2 views (last 30 days)
I am trying to generate the matrix below:
A=[1 1 0 0; 0 1 1 0;0 0 1 1;1 0 0 1]; Which means the sift will go on for "number of row(here,it is 4 times)". Is there any way I can do that?

Answers (1)

Joseph Cheng
Joseph Cheng on 8 Jun 2016
look up the function circshift()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!