Attempt to grow array along ambiguous dimension.

Hi,
I tried to get countour coordinates like this:
[x,y]=find(FC(:)>thresh);
[x1,y1]=find(FC(:)<thresh);
[x3,y3]=find( contour([x,y]))
[x4,y4]= find(contour([x1,y1]))
afeter that
S1=zeros(size(I));
S1([y3,x3])=2;%pet
S1([y4,x4])=1;
it gives as error Attempt to grow array along ambiguous dimension. in S1([y3,x3])=2;%pet
Thanks

 Respuesta aceptada

Stephen23
Stephen23 el 22 de Mzo. de 2016
Editada: Stephen23 el 22 de Mzo. de 2016
S1(y3,x3)=2;%pet
MATLAB does not accept both x and y indices together in a vector. These must be entered separately.
Learn about how MATLAB works by taking the introductory tutorials:

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Mzo. de 2016

Editada:

el 22 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by