How to create a matrix B=[bij]=[max(i,j)] belongs to class of rectangular matrices
3 ビュー (過去 30 日間)
古いコメントを表示
Please answer me
0 件のコメント
採用された回答
その他の回答 (1 件)
Christine Tobler
2018 年 2 月 12 日
Focusing on the max(i, j) part, you could use
i = 3;
j = 4;
B = max((1:i)', (1:j));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!