I have a Matlab code as you can see here :
function IWDalg(similarityMatrix,NumberOfSentencesInFile,NumberOfSentencesInAbstract)
NumIWDs = str2int(NumberOfSentencesInFile);
Numnodes=NumIWDs;
av = 1; bv = 0.01; cv = 1;
as = 1; bs = 0.01; cs = 1;
soil = repmat(InitSoil,Numnodes,Numnodes);
for i =1:NumIWDs
IWD{i}.vel = InitVel;
IWD{i}.tour = [];
IWD{i}.tour(1) =i;
IWD{i}.soil = 0;
end
I the loop for when the matlab tries to compile first line of For clause i got this error:
??? For colon operator with char operands, first and last operands must be char.
I am so beginner in matlab programming .
Best regards