Borrar filtros
Borrar filtros

How do i make user input the name of the file?

16 visualizaciones (últimos 30 días)
Jillian Paige Beck
Jillian Paige Beck el 25 de Nov. de 2019
Respondida: Roofus Milton el 25 de Nov. de 2019
close all
format long
fileName = input('Please enter your name==>', 's');
fprintf('\n');
fid=fopen('fileName.txt','w');

Respuestas (1)

Roofus Milton
Roofus Milton el 25 de Nov. de 2019
Try uigetfile.
[file,path] = uigetfile('*.m');

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by