Date: Jun 25, 2013 9:47 AM
Author: Torsten
Subject: Re: Error: Subscript indices must either be real positive integers or logicals.

"Laryssa Seabra" <seabralaryssa@gmail.com> wrote in message <kqc670$6lr$1@newscl01ah.mathworks.com>...
> for i = 1:sizex;
> for j = 1:sizey;
> cor = Xc(i,j,1);
> blank( ([i j 1]*A) ) = cor;
> end
> end
>
>
>
>
> Subscript indices must either be real positive integers or logicals.
>
> Error in testando (line 35)
> blank( ([i j 1]*A) ) = cor;
>
>
> Anyone? ):


for i = 1:sizex;
for j = 1:sizey;
cor = Xc(i,j,1);
indvec=[i j 1]*A;
blank( indvec(1,1),indvec(1,2),indvec(1,3) ) = cor;
end
end

Best wishes
Torsten.