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.

 Akzeptierte Antwort

Paul
Paul am 11 Sep. 2022

1 Stimme

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

2 Kommentare

Federico Manfrin
Federico Manfrin am 3 Mai 2024
this doc page is not present anymore

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 11 Sep. 2022

0 Stimmen

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');

Kategorien

Mehr zu Using MATLAB Projects in Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Tags

Gefragt:

am 11 Sep. 2022

Kommentiert:

am 3 Mai 2024

Community Treasure Hunt

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

Start Hunting!

Translated by