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

close all
format long
fileName = input('Please enter your name==>', 's');
fprintf('\n');
fid=fopen('fileName.txt','w');

Categories

Find more on App Building in Help Center and File Exchange

Products

Asked:

on 25 Nov 2019

Answered:

on 25 Nov 2019

Community Treasure Hunt

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

Start Hunting!