How to add a file location in Matlab
조회 수: 4 (최근 30일)
이전 댓글 표시
I am trying to run a code which requires a ".eps" file as input which is called "resource". The code convert the file into something else and save it in "destination".
function X(resource, destination)
Would you please let me know how I can enter these two variables via an example. Let's say the resource file is located in "C:\Test\res.eps" and I want to save it to "C:\Test\des"
댓글 수: 0
채택된 답변
Tom
2012년 2월 18일
You can change the current directory (the folder Matlab is currently working in) using the cd function. e.g.
cd C:\Test\res.eps
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!