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: Image processing & Pattern Recognition
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
question on Lorenz equation

Posts: 157
Registered: 12/7/04
Image processing & Pattern Recognition
Posted: Oct 3, 2012 11:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



Hi every one. I am trying to read in data from a textfille for image training and labelling.
But a kind of finding it tough to debug a major error that comes up often times at a specific line

Problem_file = '001'; %%this problem folder contains my training data, 'train.txt'

trainfile = strcat(rootdir,Problem_file,'\','train.txt'); %% the above forms train file

fid = fopen(trainfile);
filename = textscan(fid,'%s');
namelist = filename{1};
Num_Sample = str2num(namelist{1,1});
%%%%%%%%%%%%%%%%%%%%%%%%
%Construct trainining Labels and Sample list below %
Labels_Train = [];
SampleList = [];
for index1 = 2:size(namelist,1)
if (mod(index1,2)~=0)
Labels_Train = [Labels_Train,str2num(namelist{index1,1})];
else
SampleList = [SampleList;namelist{index1,1}];
%%%=======ERROR MSG %%%%%%%%%%HERE
end
end

fclose(fid);
...


Please somebody help me correct this.
Thanks and best regards.




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.