Commits

Dhananjay Nene committed 2aab1e8

Solved Part 3 of exercise 6

Comments (0)

Files changed (1)

exercise-6/octave/processEmail.m

     %       str2). It will return 1 only if the two strings are equivalent.
     %
 
-
-
-
-
-
-
-
-
+    for i = 1:size(vocabList,1)
+        if strcmp(vocabList{i},str) == 1
+            word_indices = [word_indices; i];
+        end
+    end
 
     % =============================================================