Attempt to grow array along ambiguous dimension.

Hi :)
I'm having trouble with a function becasue there's this kind of error:"Attempt to grow array along ambiguous dimension.
the error is present at the line 47.
Can anybody help me?

 채택된 답변

Laura Hann
Laura Hann 2019년 2월 17일

0 개 추천

In line 47 you're assigning the value to goodDots(id) like it's a one dimensional array but goodDots=false(zeros(1,nDots)); in line 29 creates something else. Shouldn't
goodDots=zeros(1,nDots);
be enough?

댓글 수: 2

I have modified that but now the error is "Array indices must be positive integers or logical values". this error is present at the line 52
Are you sure that's the only error and not something within the drawFixation function itself? drawFixation doesn't seem to be an array.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 2월 17일

댓글:

2019년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by