Skip to content

Instantly share code, notes, and snippets.

@jdeweese1
Last active April 10, 2020 17:25
Show Gist options
  • Save jdeweese1/9c53517b9d2245e880b76e96c429fc01 to your computer and use it in GitHub Desktop.
Save jdeweese1/9c53517b9d2245e880b76e96c429fc01 to your computer and use it in GitHub Desktop.
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