Skip to content

Instantly share code, notes, and snippets.

@jdeweese1
Created May 8, 2020 19:06
Show Gist options
  • Save jdeweese1/25ab9e44ddd1c5fdb69de8ced06c5298 to your computer and use it in GitHub Desktop.
Save jdeweese1/25ab9e44ddd1c5fdb69de8ced06c5298 to your computer and use it in GitHub Desktop.
expected_vars = ["AdjMatrix", "RowSums", "LaplaceGraph", "V", "D", "V2", "pos", "neg", "Social", "DiagSocial", "LaplaceSocial", "order", "P", "SocialOrdered"];
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