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

23 visualizzazioni (ultimi 30 giorni)
Jillian Paige Beck
Jillian Paige Beck il 25 Nov 2019
Risposto: Roofus Milton il 25 Nov 2019
close all
format long
fileName = input('Please enter your name==>', 's');
fprintf('\n');
fid=fopen('fileName.txt','w');

Risposte (1)

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

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by