フィルターのクリア

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 Center および File ExchangeNumbers and Precision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by