simulink添加​slx文件到工程,报​错,请教如何解决

5 visualizaciones (últimos 30 días)
来超
来超 el 13 de Nov. de 2024
Respondida: Sivsankar el 21 de En. de 2025
  1 comentario
Swastik Sarkar
Swastik Sarkar el 18 de Nov. de 2024
Could the model you were trying to import be shared ?

Iniciar sesión para comentar.

Respuestas (1)

Sivsankar
Sivsankar el 21 de En. de 2025
I assume that you are encountering an issue while trying to add a file to the Git repository from within MATLAB.
If you have a ".gitattributes" file in the Git repository, try deleting this file and see if you are then able to add the files. If this resolves the issue, check if the following line is present in the ".gitattributes" file:
* text=auto eol=crlf
The first part of the line (* text=auto) ensures that text files introduced by any contributor to the repository have their line endings normalized. You can set the text attribute to "auto" for all files. The second part of the line (eol=crlf) ensures that Git will always convert line endings to CRLF on checkout.
To try resolving the issue, open the ".gitattributes" file in the Git repository and move the mentioned line from the bottom to the top of the file.
I hope this helps!

Categorías

Más información sobre 源代码管理集成 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!