Avoid slprj folder and slxc files

20 visualizaciones (últimos 30 días)
Federico Manfrin
Federico Manfrin el 11 de Sept. de 2022
Comentada: Paul el 3 de Mayo de 2024
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.

Respuesta aceptada

Paul
Paul el 11 de Sept. de 2022
Possibly can be done via Simulink preferences. Try this doc page, particularly the section on "Folders for Generated Files."
  2 comentarios
Federico Manfrin
Federico Manfrin el 3 de Mayo de 2024
this doc page is not present anymore
Paul
Paul el 3 de Mayo de 2024

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 11 de Sept. de 2022
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');

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by