How can I work on a .fig file?

1 次查看(过去 30 天)
Mohammad
Mohammad 2014-1-14
I have a folder with lets say 20 .fig files and I want to do some changes on it. how should I do that? how should I ask user for a path to the folder?
here is my code so far:
function modifier
%myfolder=input('please add path');
myfolder='C:\Documents and Settings\Administrator\My Documents\MATLAB';
figfiles=dir(fullfile(myfolder,'*.fig'))
a=input('please enter [width(x),aspect ratio(x/y),resolution]');
for i=1:length(figfiles)
%openfig('figfiles(i)');
set(gcf,'paperpostionmode','manual');
set(gcf,'paperunits','centimeters');
set(gcf,'paperposition',[.25 .25 a(1) a(1)*(1/a(2))]);
print -r300
set(gca,'fontsize',11);
set(findall(gcf,'type','text'),'fontsize',11);
save('dcs','*.png');
end
end
thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by