Filter löschen
Filter löschen

Problem with the size of randperm(n)

1 Ansicht (letzte 30 Tage)
Nadhirah Jofri
Nadhirah Jofri am 12 Aug. 2015
Kommentiert: Azzi Abdelmalek am 12 Aug. 2015
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 Kommentare
Walter Roberson
Walter Roberson am 12 Aug. 2015
Please show your code.
Azzi Abdelmalek
Azzi Abdelmalek am 12 Aug. 2015
Post your code

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stalin Samuel
Stalin Samuel am 12 Aug. 2015
set iteration as 1:max(size(rn))

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by