The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Image processing & Pattern Recognition
Replies: 0  

Advanced Search

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

Posts: 161
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})];
SampleList = [SampleList;namelist{index1,1}];
%%%=======ERROR MSG %%%%%%%%%%HERE


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.