Simulink Model MAT file error

6 visualizaciones (últimos 30 días)
Juan-Carlos MCMF
Juan-Carlos MCMF el 15 de Oct. de 2025
Respondida: Tridib el 28 de Oct. de 2025 a las 8:15
I have a complex Simulink Model that is trying to access a *.MAT file.
I have a block error and the Diagnostics Viewer tells me there was an error opening or closing file 'Mode.mat'.
I'm using Simulink Version 9.3 (R2019a) from November 2018.
My MATLAB version is 9.6.0.1135713
My license number is 989073

Respuestas (1)

Tridib
Tridib el 28 de Oct. de 2025 a las 8:15
Hi @Juan-Carlos MCMF, try these troubleshooting steps that may help resolve the issue:
  • Make sure that "Mode.mat" is present in your current working directory, or provide the absolute path in your block's configuration.
  • You can check if the file exists by running:
exist('Mode.mat', 'file')
  • Check that you have the necessary permissions to read to Mode.mat.
  • The file might be corrupted. Try loading it in MATLAB with. If you see an error, you may need to recreate or restore the file. Also, confirm that the file is not open in another program, as this could prevent Simulink from accessing it.
Hope this helps!

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by