How can i open a file that the user inputs ?

2 visualizaciones (últimos 30 días)
Mohamad
Mohamad el 25 de Sept. de 2013
Is this right ?
FileID = input('please enter the name of your file');
fopen(FileID);

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 25 de Sept. de 2013
Read this
help fopen
help textscan
help fprintf

Más respuestas (1)

Jan
Jan el 25 de Sept. de 2013
Better use uigetfile, because reduces the chance of typos.

Categorías

Más información sobre Low-Level File I/O en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by