Last active
April 10, 2020 17:25
-
-
Save jdeweese1/9c53517b9d2245e880b76e96c429fc01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expected_vars = ["movies", "users_movies", "users_movies_sort", "index_small", "trial_user", "m", "n", "ratings", "m1", "n1", "eucl", "MinDist", "DistIndex", "closest_user_Dist", "ratings_cent", "trial_user", "pearson", "MaxPearson", "PearsonIndex", "closest_user_Pearson",]; | |
all_defined =1; | |
for i = 1:length(expected_vars) | |
test_var = expected_vars(i); | |
if exist(test_var) == 0 | |
all_defined = 0; | |
fprintf("%s is not defined\n", test_var); | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment