フィルターのクリア

Problem with the size of randperm(n)

1 回表示 (過去 30 日間)
Nadhirah Jofri
Nadhirah Jofri 2015 年 8 月 12 日
コメント済み: Azzi Abdelmalek 2015 年 8 月 12 日
i should run a data of a matrix of [1055x98] involving the rn=randperm(n) however, it can't be as it says:
Attempted to access rn(1056,1);index out of bounds because size(rn)=[1055,1]
do i have problem with the size of rn? if it is, how to set a new one ?
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 8 月 12 日
Please show your code.
Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 12 日
Post your code

サインインしてコメントする。

採用された回答

Stalin Samuel
Stalin Samuel 2015 年 8 月 12 日
set iteration as 1:max(size(rn))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by