필터 지우기
필터 지우기

what is command for circularly writing a row matrix in matlab

조회 수: 1 (최근 30일)
Satishkumar D
Satishkumar D 2015년 9월 2일
댓글: Stephen23 2015년 9월 4일
example: let
a=[1 2 3 4 5]
i want output like
b=[ 1 2 3 4 5;
5 1 2 3 4;
4 5 1 2 3;
3 4 5 1 2;
2 3 4 5 1]
please help me

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 2일
toeplitz() ?
  댓글 수: 3
Satishkumar D
Satishkumar D 2015년 9월 2일
i just tried.. output is getting like below
1 2 3 4
2 1 2 3
3 2 1 2
4 3 2 1
if a=[1 2 3 4 5] but i want output
[ 1 2 3 4 5; 5 1 2 3 4; 4 5 1 2 3; 3 4 5 1 2; 2 3 4 5 1]
Satishkumar D
Satishkumar D 2015년 9월 2일
thanks Stephen Cobeldick

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

추가 답변 (1개)

Steven Lord
Steven Lord 2015년 9월 2일
gallery('circul', 1:5)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by