Skip to content

Commit

Permalink
Remove erroneous which call from gen_xps_mod_ucf
Browse files Browse the repository at this point in the history
The `which` function in matlab looks up the location of functions,
variables, models, java classes etc.  In `gen_xps_mod_ucf`, it was being
used in an apprarent attempt to lookup UCF files in a given directory,
but that is not an appropriate use of `which` and it is not necessary,
so the call to `which` was simply removed.
  • Loading branch information
david-macmahon committed Apr 17, 2015
1 parent d314734 commit c97463d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xps_library/gen_xps_mod_ucf.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function gen_xps_mod_ucf(xsg_obj, xps_objs, mssge_proj, mssge_paths, slash)
fprintf(ucf_fid,'##############################################\n');

for n = 1:length(user_ucf_files)
file_path = which(fullfile(user_ucf_path, user_ucf_files(n).name));
file_path = fullfile(user_ucf_path, user_ucf_files(n).name);
fprintf(ucf_fid, '\n\n### BEGIN %s\n\n', file_path);
fprintf(ucf_fid, fileread(file_path));
fprintf(ucf_fid, '\n\n### END %s\n\n', file_path);
Expand Down

0 comments on commit c97463d

Please sign in to comment.