How to restore example to default
Mostrar comentarios más antiguos
I opened a Simulink example file and made modifications before thinking of making a working copy. Now I can't get back to the original. How can I download it again from Mathworks?
1 comentario
Torsten
el 26 de Jul. de 2024
Can't you reinstall the Simulink examples folder ? If not, I'd reinstall complete MATLAB.
Respuestas (1)
Shubham
el 5 de Ag. de 2024
1 voto
Hi Roger,
It is my understanding that you want to restore your Simulink example to default state. You can do so by following these steps:
- Open your modified Simulink example.
- Search for its location in your system by using 'which example_model_name' command.
- Go to the location and delete/move the Simulink example to some other location as per your requirement.
- Again, open the example using 'openExample(example_name)' command.
This will open the default Simulink example.
Hope it helps.
Regards,
Shubham
8 comentarios
Roger Kaplan
el 5 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
Torsten
el 5 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
Walter Roberson
el 5 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
When you openExample(), MATLAB makes a copy of internal files (including unpacking internal archives) and drops the result into a user directory. The source files are left intact. If you remove the directory that the files were unpacked into, then the next time you openExample(), the files will be unpacked again.
Torsten
el 6 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
So it's impossible to irreversably modify Simulink example files as @Roger Kaplan claimed to have done ? Modifications are always done to a copy ?
Walter Roberson
el 6 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
You would have to have dug around and found the master version and modified that. Not impossible, but unlikely.
The master versions of files are mostly stored in numbered files, and then for each example there is a manifest that says which files are to be extracted and what name they are to be given. This is done because there is a fair bit of overlap of files between examples, shared infrastructure.
Shubham
el 9 de Ag. de 2024
Movida: Walter Roberson
el 9 de Ag. de 2024
Hi @Roger Kaplan, It worked on my end and I was able to restore my examples to default state. Can you try implementing the solution to see if it works for you.
If you have any queries, feel free to comment
Roger Kaplan
el 9 de Ag. de 2024
nirlan neckir
el 3 de En. de 2025
Categorías
Más información sobre Texas Instruments C2000 Processors en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!