Borrar filtros
Borrar filtros

Problem with the size of randperm(n)

1 visualización (últimos 30 días)
Nadhirah Jofri
Nadhirah Jofri el 12 de Ag. de 2015
Comentada: Azzi Abdelmalek el 12 de Ag. de 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 comentarios
Walter Roberson
Walter Roberson el 12 de Ag. de 2015
Please show your code.
Azzi Abdelmalek
Azzi Abdelmalek el 12 de Ag. de 2015
Post your code

Iniciar sesión para comentar.

Respuesta aceptada

Stalin Samuel
Stalin Samuel el 12 de Ag. de 2015
set iteration as 1:max(size(rn))

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by