row circular shift in matrix
Show older comments
How can I shift all the elements of a particular row in matrix in left circular shift or right circular shift.
Accepted Answer
More Answers (1)
Stephen23
on 23 Apr 2020
M(row,:) = circshift(M(row,:),k,2)
1 Comment
Abhishek Bakhla
on 24 Apr 2020
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!