View Single Post
  #11  
Old July 29th, 2008, 01:30 PM
hunter hunter is offline
Newbie
 
Join Date: Jul 2008
Posts: 11
Country:
Thanks: 6
Thanked 0 Times in 0 Posts
hunter is on a distinguished road
Default Tried Code, but error received

I hav put the code in my program, portion i added is below, but i the following error:


??? Error: File: Loop_NoP_V2_Theta_Plane1_Plane2.m Line: 19 Column: 3
Illegal use of reserved keyword "else".

Code I put in:

L=128

for idx =1 : 10
if idx==1
%load the spreadsheet
flin='C:\Documents and Settings\prhill\My Documents\Hill\Point_Clouds\20_1_00.asc';
flout=[f100,num2str(101);
else
flin=flout
flout=[f100,num2str(100+idx)];
end

points=load(flin);


Any new helpful hints?

Thanks
Reply With Quote