フィルターのクリア

creating folder in matlab

1 回表示 (過去 30 日間)
PA
PA 2022 年 7 月 14 日
コメント済み: KSSV 2022 年 7 月 15 日
how can i create a folder in matlab which will store all my text files in it

回答 (2 件)

KSSV
KSSV 2022 年 7 月 14 日
Read about mkdir

Chunru
Chunru 2022 年 7 月 14 日
% create folder (in current folder)
folder = "mydir";
mkdir(folder);
% save data in a file in the folder
a = rand(3);
save(fullfile(folder, 'test.txt'), 'a', '-ascii');
% show the file
type mydir/test.txt
9.1502065e-01 3.7285299e-01 4.3150896e-01 7.5313780e-01 3.3675547e-01 7.8404462e-01 6.1655730e-01 8.5559888e-01 5.9375337e-01
  3 件のコメント
Chunru
Chunru 2022 年 7 月 15 日
Show your code.
KSSV
KSSV 2022 年 7 月 15 日
It saves in the pwd... You give path in the name.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by