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

조회 수: 3 (최근 30일)
Jillian Paige Beck
Jillian Paige Beck 2019년 11월 25일
답변: Roofus Milton 2019년 11월 25일
close all
format long
fileName = input('Please enter your name==>', 's');
fprintf('\n');
fid=fopen('fileName.txt','w');

답변 (1개)

Roofus Milton
Roofus Milton 2019년 11월 25일
Try uigetfile.
[file,path] = uigetfile('*.m');

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by