Subscript indices must either be real positive integers or logicals.

This code
for i=1:length(StayCell)
if(StayCell(i,2:7)==0)
StayCell(i,:)=[];
end
StayCell(i,:)=StayCell(StayCell(i,:));
end
generates this error 'Subscript indices must either be real positive integers or logicals.', can you help me? thanks

2 Comments

Please stop posting duplicate questions, it makes it more difficult for us to help you. I have answered your other (almost) identical question on this topic:

Answers (0)

This question is closed.

Asked:

on 27 Oct 2015

Commented:

on 27 Oct 2015

Community Treasure Hunt

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

Start Hunting!