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

Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')

 Accepted Answer

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!