フィルターのクリア

can anyone help me to construct this matrix ?

2 ビュー (過去 30 日間)
diadalina
diadalina 2018 年 1 月 7 日
編集済み: Stephen23 2018 年 1 月 7 日
i have a such vector W,and i want to construct a matrix, in the attached file i have the form that i want to got, can anyone help me to do this ? thanks in advanced .

採用された回答

Stephen23
Stephen23 2018 年 1 月 7 日
編集済み: Stephen23 2018 年 1 月 7 日
You could use toeplitz:
>> W = 0:2:8
W =
0 2 4 6 8
>> N = numel(W);
>> S = (-1).^(0:N-1);
>> toeplitz([W(end),ones(1,N-1)],S.*W(end:-1:1))
ans =
8 -6 4 -2 0
1 8 -6 4 -2
1 1 8 -6 4
1 1 1 8 -6
1 1 1 1 8

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by