Problem with the size of randperm(n)

3 vues (au cours des 30 derniers jours)
Nadhirah Jofri
Nadhirah Jofri le 12 Août 2015
Commenté : Azzi Abdelmalek le 12 Août 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 commentaires
Walter Roberson
Walter Roberson le 12 Août 2015
Please show your code.
Azzi Abdelmalek
Azzi Abdelmalek le 12 Août 2015
Post your code

Connectez-vous pour commenter.

Réponse acceptée

Stalin Samuel
Stalin Samuel le 12 Août 2015
set iteration as 1:max(size(rn))

Plus de réponses (0)

Catégories

En savoir plus sur Computational Geometry dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by