I have created a function to browse a file in a gui. Now I have another function which does some calculations with the variables in the browsed file. So how do I load that file's contents in the new function?

# MATLAB: How to do this? Pass a filename to a function

#functionhandling

###### Related Question

- How to make a user defined function with the input being the file name in a string
- Sudoku generator and solver
- Calling a function from a different directory
- How to create a “function function”? How do you make a function that accepts another arbitrary function as an input argument
- Graphic representation on MATLAB
- Load a variable from base workspace into a edittext field
- How to load spefic sheet of excel workbook in matlab

## Best Answer