Date: Mar 13, 2009 8:26 AM
Author: ulas
Subject: subscript error

Dear Matlab users

ı am trying to run the short code below but i keep getting the error:
??? Assignment has fewer non-singleton rhs dimensions than non-singleton
subscripts

the error occurs when it runs for the hour 9 and passes to hour 10:

for time=0:23

filename=['FinalEmission_Day1_Spe1_Hour',num2str(time)]; %CO
load(filename);
t=num2str(time);

EmmTemp=zeros(163,150,20,24);

EmmTemp(:,:,:,t)=B(:,:,:);

clear B t filename EmmTemp;

end

what is the source of this problem?

Ulas