Is it possible to force that "not interesting for the user" files away from the main folder where my script and simulink files are?
I would like that file to be someway in a temporary harddisk location I can clean once a year, for example.

 採用された回答

Paul
Paul 2022 年 9 月 11 日

1 投票

Possibly can be done via Simulink preferences. Try this doc page, particularly the section on "Folders for Generated Files."

2 件のコメント

Federico Manfrin
Federico Manfrin 2024 年 5 月 3 日
this doc page is not present anymore
Paul
Paul 2024 年 5 月 3 日

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2022 年 9 月 11 日

0 投票

Yes, just define that folder like
tempFolder = 'C:\User\Public\Documents\Temporary Simulink Files';
Then use fullfile to build up the name of the file you need to save, like
fullFileName1 = fullfile(tempFolder, 'Temp File1.txt');
fullFileName2 = fullfile(tempFolder, 'Temp File2.dat');
fullFileName3 = fullfile(tempFolder, 'Temp File3.mat');

カテゴリ

ヘルプ センター および File ExchangeUsing MATLAB Projects in Simulink についてさらに検索

製品

リリース

R2022a

タグ

質問済み:

2022 年 9 月 11 日

コメント済み:

2024 年 5 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by