MATLAB: How to add a file location in Matlab

MATLAB: How to add a file location in Matlab

file

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:Testres.eps” and I want to save it to “C:Testdes”

Best Answer

  • You can change the current directory (the folder Matlab is currently working in) using the cd function. e.g.
    cd C:Testres.eps
  • Add a Comment

    Your email address will not be published. Required fields are marked *