opening a fig in different directory

hi. I have two .fig files: for example fig1 and fig2. fig2 is in a folder for example folderfig2. this folder is beside fig1. I want to open fig2 by clicking a push button in fig1. I should make this program exe so it dosnt have specified directory. what should I do?

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 3일

0 개 추천

When you want to use any file you have to specify the name of the file and its location. example
folder='E:\matlab'
filename='fig1.fig'
ful_file=fullfile(folder,filename)
Then use ful_file

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by