フィルターのクリア

Fill in a Matrix with predefined numbers

1 回表示 (過去 30 日間)
Konstantinos
Konstantinos 2015 年 1 月 10 日
回答済み: Guillaume 2015 年 1 月 10 日
I want to create a row matrix of 16 elements and fill in the first 8 elements (as well as the last 8 elements) of it, with integers from 1 to 8, each being used only once.
i.e. result = ( 2 5 6 8 3 1 4 7 3 5 1 7 8 4 2 6 )
Any help could be useful. thanks in advance!

採用された回答

Guillaume
Guillaume 2015 年 1 月 10 日
[randperm(8) randperm(8)]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by