Skip to content

Commit

Permalink
Fix 'ea_methods'
Browse files Browse the repository at this point in the history
  • Loading branch information
ningfei committed Mar 23, 2017
1 parent 57c57e6 commit 9cbdcd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ea_methods.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ function ea_methods(options,parsestr,refs)

if exist('refs','var') % add refs
expstr=[expstr,'\n\nReferences:\n','--------------------------\n'];

for r=1:length(refs)
expstr=[expstr,[num2str(r),') ',refs{r},'\n']];
end
end

expstr=[expstr,'\n\n***'];
if options.prefs.machine.methods_show
try
if options.prefs.machine.methods.show
try
ea_methodsdisp({expstr});
end
else
Expand All @@ -40,7 +40,7 @@ function ea_methods(options,parsestr,refs)

if exist('directory','var')
metfile=fopen([directory,'ea_methods.txt'],'a');

fprintf(metfile,expstr);
fclose(metfile);
end
Expand Down

0 comments on commit 9cbdcd7

Please sign in to comment.