Borrar filtros
Borrar filtros

Attempt to grow array along ambiguous dimension.

2 visualizaciones (últimos 30 días)
ROBERTA NOCERINO
ROBERTA NOCERINO el 17 de Feb. de 2019
Comentada: Laura Hann el 18 de Feb. de 2019
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?

Respuesta aceptada

Laura Hann
Laura Hann el 17 de Feb. de 2019
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 comentarios
ROBERTA NOCERINO
ROBERTA NOCERINO el 17 de Feb. de 2019
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
Laura Hann
Laura Hann el 18 de Feb. de 2019
Are you sure that's the only error and not something within the drawFixation function itself? drawFixation doesn't seem to be an array.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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