How can i open a file that the user inputs ?

2 views (last 30 days)
Is this right ?
FileID = input('please enter the name of your file');
fopen(FileID);

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 25 Sep 2013
Read this
help fopen
help textscan
help fprintf

More Answers (1)

Jan
Jan on 25 Sep 2013
Better use uigetfile, because reduces the chance of typos.

Community Treasure Hunt

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

Start Hunting!