Error: Subscript indices must either be real positive integers or logicals.

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;

1 Comment

Did you initialize blank?
What is A? A Matrix or a value? Is it element wise multiplication?

Answers (0)

This question is closed.

Asked:

on 25 Jun 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!