How to save a txt file in matlab with the specified name I want?

조회 수: 5 (최근 30일)
Luccas S.
Luccas S. 2021년 4월 14일
댓글: Luccas S. 2021년 4월 14일
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')

채택된 답변

Walter Roberson
Walter Roberson 2021년 4월 14일
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Files and Folders에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by