shaping matrix w.r.t. the array

2 ビュー (過去 30 日間)
sermet
sermet 2016 年 12 月 5 日
回答済み: Guillaume 2016 年 12 月 5 日
for example
Cyy=[0.1;0.2;0.3;0.4;0.5]; %array
how can I create Q matrix w.r.t the Cyy array as follows;
Q=[Cyy(1) Cyy(2) Cyy(3) Cyy(4) Cyy(5);Cyy(2) Cyy(1) Cyy(2) Cyy(3) Cyy(4) Cyy(5);Cyy(3) Cyy(2) Cyy(1) Cyy(2) Cyy(3);Cyy(4) Cyy(3) Cyy(2) Cyy(1) Cyy(2);Cyy(5) Cyy(4) Cyy(3) Cyy(2) Cyy(1)];

採用された回答

Guillaume
Guillaume 2016 年 12 月 5 日
fliplr(hankel(flip(Cyy), Cyy))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by