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

23 Ansichten (letzte 30 Tage)
Jillian Paige Beck
Jillian Paige Beck am 25 Nov. 2019
Beantwortet: Roofus Milton am 25 Nov. 2019
close all
format long
fileName = input('Please enter your name==>', 's');
fprintf('\n');
fid=fopen('fileName.txt','w');

Antworten (1)

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

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by