How i can create one specific matrix 100X100?
8 ビュー (過去 30 日間)
古いコメントを表示
The form of the matrix is

How i can create that can anyone help?
0 件のコメント
採用された回答
Star Strider
2015 年 1 月 12 日
編集済み: Star Strider
2015 年 1 月 12 日
This works:
v = -[1:100]';
vu = triu(repmat(v, 1, size(v,1)));
vl = tril(repmat(-v', size(v,1), 1));
out = vu + vl + diag(-v);
その他の回答 (1 件)
kavya k
2017 年 5 月 16 日
how to create a 240*320 matrix containing the data 0.1991 in all the cells.can anyone help me.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!