Effacer les filtres
Effacer les filtres

How can I work on a .fig file?

1 vue (au cours des 30 derniers jours)
Mohammad
Mohammad le 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

Réponses (0)

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by