Info
This question is closed. Reopen it to edit or answer.
Unable to debug this. Plz help
1 view (last 30 days)
Show older comments
clear all;
clc;
load 'noteqlwords.mat';
[noti,notj]=size(noteqlwords);
eightgm=floor(noti/8);
col=2;
row1=1;
row2=8;
rows=1;
for i=1:5000
temp=0;
for row=row1:row2
for col1=col:col
val= strcmp(noteqlwords(row,1),noteqlwords(rows,col1));
temp=temp+val;
rows=rows+1;
end
end
%display(temp);
if temp>=5
for row= row1:row2
str=noteqlwords(row,1);
string(row)=str;
end
col1
row1=row1+8;
row2=row2+8;
col=2;
temp=0;
rows=1;
row
continue
else
if rows <noti
continue
end
if (rows==noti) && (col<notj)
col=col+1;
continue
end
if (rows==noti) && (col==notj)
row1=row1+8;
row2=row2+8;
break
end
end
end
display(string);
0 Comments
Answers (2)
Walter Roberson
on 18 Apr 2014
You have not given us fundamental information about what datatype noteqlwords is, and you have not told us which line the error is occurring on or the value of the variables when that line is reached.
0 Comments
Image Analyst
on 18 Apr 2014
Go here to learn how to debug (debugging is the very same thing we'd have to do, so better you than us): http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!