How do i make this matrix simply
1 回表示 (過去 30 日間)
古いコメントを表示
I am looking for an easy way to make this Nx2 matrix starting at [0 1]. Every other line the numbers are the inverse of the previous. See example below. I would like to be able to make this array in a simple way in one line without a loop. Either one of the matrix below would work.
x=[0 1;1 0;2 3 ;3 2;4 5;5 4]
OR
x=[0 1;0 1;2 3;2 3;4 5;4 5;]
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!