How can I work on a .fig file?

3 visualizaciones (últimos 30 días)
Mohammad
Mohammad el 14 de En. de 2014
Editada: Azzi Abdelmalek el 14 de En. de 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

Respuestas (0)

Categorías

Más información sobre Software Development Tools en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by