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

9 ビュー (過去 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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by