Skip to content

Commit a1ea86c

Browse files
committed
main: Fixed issue with last commit
1 parent 52c0bf8 commit a1ea86c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

basics/print_pdf.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function print_pdf(fig_h,basename)
1818
end
1919
end
2020
fprintf(1,'Writing PDF file %s.pdf:\n',basename);
21-
temp_file_path=[tempname '.eps'];
21+
temp_file_path=[tempname() '.eps'];
2222
%print(fig_h,'-depsc2','-loose','-adobecset',temp_file_path);
2323
old_vals=set_figure_to_wysiwyg_printing(fig_h);
2424
print(fig_h,'-depsc2','-loose',temp_file_path);
@@ -40,7 +40,7 @@ function print_pdf(fig_h,basename)
4040
temp_file_path);
4141
%eval_me=sprintf('! acrodist /n /q "%s\\%s.eps"',pwd,basename);
4242
if isunix() ,
43-
command = append('LD_LIBRARY_PATH= ', command) ;
43+
command = horzcat('LD_LIBRARY_PATH= ', command) ;
4444
end
4545
%fprintf('%s\n', command) ;
4646
system(command);

basics/print_png.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function print_png(fig_h,basename,res)
2121
res=200;
2222
end
2323
fprintf(1,'Writing PNG file %s.png:\n',basename);
24-
temp_file_path=append(tempname(),'.eps') ;
24+
temp_file_path=horzcat(tempname(),'.eps') ;
2525
% print(fig_h,'-depsc2','-loose','-adobecset',temp_file_path);
2626
old_vals=set_figure_to_wysiwyg_printing(fig_h);
2727
print(fig_h,'-depsc2','-loose',temp_file_path);
@@ -45,7 +45,7 @@ function print_png(fig_h,basename,res)
4545
basename,...
4646
temp_file_path);
4747
if isunix() ,
48-
command = append('LD_LIBRARY_PATH= ', raw_command) ;
48+
command = horzcat('LD_LIBRARY_PATH= ', raw_command) ;
4949
end
5050
%fprintf('%s\n', command) ;
5151
system(command) ;

0 commit comments

Comments
 (0)