필터 지우기
필터 지우기

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 CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by