Filter löschen
Filter löschen

How can I work on a .fig file?

1 Ansicht (letzte 30 Tage)
Mohammad
Mohammad am 14 Jan. 2014
Bearbeitet: Azzi Abdelmalek am 14 Jan. 2014
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

Antworten (0)

Kategorien

Mehr zu Software Development Tools finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by