Hey guys , How can i shift rows or columns within an array?

A = [ 1,2,3;4,5,6;7,8,9] How do i shift [1 , 2 , 3] to where [ 4,5,6] is?

댓글 수: 2

What do you mean by "shift"? Can you give an example of what the output should be? And what have you tried so far?
You mean, you want to do 'circshift' like this ?
>> circshift(A,1,1)
ans =
7 8 9
1 2 3
4 5 6

댓글을 달려면 로그인하십시오.

답변 (1개)

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

태그

질문:

2017년 9월 22일

답변:

2017년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by