how to save file in specific path?

5 views (last 30 days)
I wanted to save my alredy genrated text file in folder
file name is "data201203.txt"
"C:\Users\IISER BPR\Documents\MATLAB\Instrument program"
what is the best simplest and suitable command?
Or eles suggest me how to use uiputfile function.(please write small code)
  2 Comments
Ive J
Ive J on 4 Dec 2020
doc movefile
movefile('data201203.txt', 'C:\Users\IISER BPR\Documents\MATLAB\Instrument program')
Somnath Kale
Somnath Kale on 4 Dec 2020
@Ive Ive
Thanks for your reply!! still little issue
Error using movefile
Cannot copy or move a file or directory onto itself.
showing this error but fele kept at proper place

Sign in to comment.

Accepted Answer

Anmol Dhiman
Anmol Dhiman on 7 Dec 2020
Hi Somnath,
Refer to movefile to move a file from one location to another.
Regards,
Anmol Dhiman

More Answers (0)

Categories

Find more on Dialog Boxes in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!