필터 지우기
필터 지우기

How can I work on a .fig file?

조회 수: 1 (최근 30일)
Mohammad
Mohammad 2014년 1월 14일
편집: Azzi Abdelmalek 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