Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error: Subscript indices must either be real positive integers or logicals.
Replies: 1   Last Post: Jun 25, 2013 9:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Torsten

Posts: 1,440
Registered: 11/8/10
Re: Error: Subscript indices must either be real positive integers or logicals.
Posted: Jun 25, 2013 9:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.