To create a text file and to save it to a specific user defined folder

4 ビュー (過去 30 日間)
Chetankumar B
Chetankumar B 2017 年 10 月 18 日
コメント済み: Chetankumar B 2017 年 10 月 24 日
I have tried to save text file by using save('plot2_On_Axis_Phase.txt','bx4','-ASCII'); to open user defined directory by using uigetdir; but not able to achieve required result. also trying develop a standalone application of a GUI and GUI have to export the text file to the user defined location.

採用された回答

KSSV
KSSV 2017 年 10 月 18 日
path = pwd ; % your path here
filename = 'test.txt' ; % text file name
file = [path filesep filename] ; % make filename with path
K = rand(10) ; % some random data to write in file
save(file,'K','-ascii')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by