How can i open a file that the user inputs ?

2 visualizzazioni (ultimi 30 giorni)
Is this right ?
FileID = input('please enter the name of your file');
fopen(FileID);

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 25 Set 2013
Read this
help fopen
help textscan
help fprintf

Più risposte (1)

Jan
Jan il 25 Set 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!

Translated by